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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access