Share via


<Command> Element

Represents a command of an ObjectList ASP.NET mobile control. Each <Command> element represents a command that a user can invoke on an item in an object list.

Mobile Controls Syntax

Required properties and code-featured elements are noted in bold type.

<Command Name="commandName" Text="commandText" />

Properties

Property Description
Name Sets or returns the name of the specified object, except as noted in the Remarks section. The default value is an empty string ("").
Text Sets or returns the text for the command.

Containment Rules

The following controls can contain a <Command> element.

Control Comments
System.Web.UI.MobileControls.ObjectList An ObjectList control can contain any number of Command elements.

A <Command> element cannot contain any child controls or elements.

See Also

Command Class