WebControls

WebControls are all derived from System.Web.UI.WebControls.WebControl, which itself derives from the Control class. The hierarchy of WebControls thus looks very similar to the HtmlControl class hierarchy from Figure 5.1. Figure 5.4 shows the WebControl class hierarchy.

Figure 5.4. WebControls class hierarchy.

For this chapter, we'll be looking at the controls on the left side of Figure 5.4. Most of the more complex controls are covered in the next few chapters.

WebControl Properties

To begin, though, we should take a look at the WebControl class itself, because all of its properties and methods are built into every WebControl. The most ...

Get ASP.NET by Example 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.