System.Web.UI.WebControls.ImageButton.CommandArgument Property

Gets or sets an optional argument that provides additional information about the ImageButton.CommandName property.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Bindable(true)]
public string CommandArgument { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Sometimes, multiple System.Web.UI.WebControls.ImageButton controls are related and share the same value for the ImageButton.CommandName property, such as Sort. Use this property to supplement the ImageButton.CommandName property with additional information about the command to perform, such as Ascending. The values of the ImageButton.CommandName and ImageButton.CommandArgument properties are typically used in the ImageButton.OnCommand(CommandEventArgs) event handler to determine the action to perform when the System.Web.UI.WebControls.ImageButton control is clicked.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0