System.Web.UI.WebControls.LinkButton.CommandArgument Property

Gets or sets an optional argument passed to the LinkButton.Command event handler along with the associated LinkButton.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

Use the LinkButton.CommandArgument property to specify an argument that complements the LinkButton.CommandName property.

Note:

The LinkButton.CommandArgument property is typically only used when the LinkButton.CommandName property is set.

The LinkButton.CommandArgument property complements the LinkButton.CommandName property by allowing you to provide any additional information about the command to perform. For example, you can set the LinkButton.CommandName property to Sort and set the LinkButton.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 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