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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.