System.Web.UI.WebControls.DataControlCommands Class

The System.Web.UI.WebControls.DataControlCommands class contains public fields that all ASP.NET data-bound controls use, to promote a consistent user interface (UI). This class cannot be inherited.

See Also: DataControlCommands Members

Syntax

public sealed class DataControlCommands

Remarks

The System.Web.UI.WebControls.DataControlCommands class contains public fields for data-bound control command names. The class constructor is private, so you cannot create an instance of the class. However, because it only contains const string resources, you can use the class constructor and its public fields just as you would any static class.

Using the command names of the System.Web.UI.WebControls.DataControlCommands class enables all the ASP.NET data-bound controls and their respective designer classes to use the same string resources for common commands, such as "Edit" or "Update", and to correctly handle events that are posted by an System.Web.UI.IPostBackEventHandler instance. The following classes use System.Web.UI.WebControls.DataControlCommands:

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0