LinkButton.CommandArgument Property
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] [BindableAttribute(true)] public: virtual property String^ CommandArgument { String^ get () sealed; void set (String^ value) sealed; }
/** @property */ public final String get_CommandArgument () /** @property */ public final void set_CommandArgument (String value)
public final function get CommandArgument () : String public final function set CommandArgument (value : String)
Not applicable.
Property Value
An optional argument passed to the Command event handler along with the associated CommandName property. The default value is String.Empty.Use the CommandArgument property to specify an argument that complements the CommandName property.
Note: |
|---|
| The CommandArgument property is typically only used when the CommandName property is set. |
The CommandArgument property complements the CommandName property by allowing you to provide any additional information about the command to perform. For example, you can set the CommandName property to Sort and set the CommandArgument property to Ascending to specify a command to sort in ascending order.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Introduction to ASP.NET Themes.
The following example demonstrates how to use the CommandArgument property to specify an optional argument that complements the command name for a LinkButton control.
Note: