System.Web.UI.WebControls.Button.CommandArgument Property

Gets or sets an optional parameter passed to the Button.Command event along with the associated Button.CommandName.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the Button.CommandArgument property to specify a parameter that compliments the Button.CommandName property.

Note:

Although you can set the Button.CommandArgument property by itself, it is normally only used when the Button.CommandName property is also set.

The Button.CommandArgument property complements the Button.CommandName property by allowing you to provide additional information about the command to perform. For example, if you set the Button.CommandName property to Sort and the Button.CommandArgument property to Ascending, you specify a command to sort in ascending order.

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