Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataControlCommands Class
Collapse the table of content
Expand the table of content

DataControlCommands Class

The 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.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public ref class DataControlCommands sealed
public final class DataControlCommands
public final class DataControlCommands
Not applicable.

The 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 it and its public fields just as you would any static class.

Using the command names of the 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 correctly handle events posted by an IPostBackEventHandler instance. The following classes use the DataControlCommands:

System.Object
  System.Web.UI.WebControls.DataControlCommands

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft