Chapter 7. User Controls

Web forms bring component-based programming to the Internet by enabling complex rendering and behavioral logic to be encoded in reusable server control classes. Classes such as Calendar and DataGrid form the backbone of Web forms and enable developers who have only a rudimentary knowledge of HTML and client-side scripting to build sophisticated Web pages.

But the story of componentization in ASP.NET doesn’t end with server controls. ASP.NET supports a second type of component called the user control. A user control is a custom control built from HTML and server-side script. It’s an intuitive and easily understood means for capturing and sharing functionality without resorting to the server-side includes (SSIs) so prevalent ...

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