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


public sealed class DataControlCommands


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:


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