6.6. Control class

This class defines properties, methods, and events for all ASP.NET server controls – either controls that have a user interface or controls without one. Web forms pages are server controls and are based on the Page class, which we will discuss below.

The Control class has the following properties.

  • ClientID Contains the server control identifier generated by ASP.NET.

  • Controls Contains the ControlCollection object, which is a collection of all child controls for this server control.

  • EnableViewState Indicates whether or not the server control maintains its view state and the view state of any of its child controls.

  • ID Specifies the server control’s programmatic identifier.

  • Page Indicates the Page object that contains this server ...

Get A Programmer's Guide to .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.