Chapter 4. Custom Rendered Controls

After completing this chapter, you will be able to

  • Add a new project to the existing project in a Microsoft Visual Studio solution file.

  • Create a server-side control that renders custom HTML.

  • Add a server-side control to the Visual Studio Toolbox.

  • Place a server-side control on a Web Form.

  • Manage events in the control.

  • Use ASP.NET to detect differences in client browsers and apply that information.

Chapter 3 describes the fundamental architecture behind the ASP.NET rendering model. System.Web.UI.Page manages a list of server-side controls, and it’s the job of each server-side control to render a particular portion of the page. ASP.NET broadly classifies server-side controls into two categories:

  • Rendering controls (controls ...

Get Microsoft® ASP.NET 4 Step by Step 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.