Creating User Controls

In addition to the built-in server controls in the .NET Framework, you can also build your own controls to be placed on Web Forms. ASP.NET supports two different types of user-created controls: user controls and custom controls. The creation of custom controls is beyond the scope of this book, but it's simple to create user controls. These controls are basically saved pages (or pagelets) that act as self-contained controls.

For example, you may wish to create a menu system along the left side of every page in your site, where each menu item is built from a database. You might also want to place a standard logo and header on each page. What you need is some way to include standard pages, or parts of pages, within each of ...

Get ASP.NET Developer's JumpStart 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.