O'Reilly logo

ASP.NET by Example by Steven A. Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HtmlControls

The HtmlControls all inherit from System.Web.UI.HtmlControls.HtmlControl, and are the most basic server controls in the Framework. Any HTML tag can be made into an HtmlControl simply by adding runat="server" to it. There are about a dozen HtmlControls that have specific behavior, and thus have their own subclassed classes to describe them. Any other control is created as an HtmlGenericControl class. Figure 5.1 demonstrates the class hierarchy for the HtmlControls.

Figure 5.1. HtmlControls class hierarchy.

HtmlControl Properties and Methods

Because all HtmlControls inherit from the System.Web.UI.HtmlControls.HtmlControl class, its properties ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required