System.Web.UI.WebControls.CommandEventArgs.CommandArgument Property

Gets the argument for the command.

Syntax

public object CommandArgument { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The CommandEventArgs.CommandArgument can contain any string set by the programmer. The CommandEventArgs.CommandArgument property complements the CommandEventArgs.CommandName property by allowing you to provide any additional information for the command. For example, you can set the CommandEventArgs.CommandName property to Sort and set the CommandEventArgs.CommandArgument property to Ascending to specify a command to sort in ascending order.

Requirements

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