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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access