7.4. Web server controls

The web server controls included in ASP.NET provide a more consistent object model and a higher level of abstraction than the HTML controls we have discussed above. The following list shows the main features of the web controls.

  • The web controls represent most HTML elements.

  • The web controls extend the set of HTML elements with more high-level controls, such as Calendar or Ad Rotator, than those discussed earlier.

  • The web controls version of HTML elements typically has a more consistent interface than is available using the other controls.

  • Web controls may render themselves differently based on client browser capabilities.

  • Web controls are based on the WebControl class implemented in the System.Web.UI.WebControls namespace. ...

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.