System.Web.UI.WebControls.LinkButton.CommandName Property

Gets or sets the command name associated with the System.Web.UI.WebControls.LinkButton control. This value is passed to the LinkButton.Command event handler along with the LinkButton.CommandArgument property.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

When you have multiple System.Web.UI.WebControls.LinkButton controls on a Web page, use the LinkButton.CommandName property to specify or determine the command name associated with the System.Web.UI.WebControls.LinkButton control clicked. You can set the LinkButton.CommandName property with any string that identifies the command to perform. You can then programmatically determine the command name of the System.Web.UI.WebControls.LinkButton control and perform the appropriate actions.

Additional information about the command, such as an Ascending sort order, can be specified by using the LinkButton.CommandArgument property.

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