33.2. The Control and WebControl Base Classes

The System.Web.UI.Control base class defines various properties, methods, and events that allow the ability to interact with core (typically non-GUI) aspects of a web control. Table 33-1 documents some, but not all, members of interest.

Table 33.1. Select Members of System.Web.UI.Control
MemberMeaning in Life
ControlsThis property gets a ControlCollection object that represents the child controls within the current control.
DataBind()This method binds a data source to the invoked server control and all its child controls.
EnableThemingThis property establishes whether the control supports theme functionality (the default is true).
HasControls()This method determines whether the server control contains ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition 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.