Chapter 19. Creating New ASP.NET Controls

 

Appreciation is a wonderful thing: It makes what is excellent in others belong to us as well.

 
 --Voltaire

If none of the existing Web server controls meet your requirements, you can create your own control by deriving from one of the control base classes—Control and WebControl. Even in this case, though, you don't have to build your control completely from scratch. The Control and WebControl classes provide all the basic functionality of a Web server control and let you focus mostly on the specific features you need to implement.

In its simplest form, a Web server control is a software component that abstracts a piece of HTML markup and exposes it through an object model. You can write controls using any ...

Get Programming Microsoft® ASP.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.