Chapter 21. Creating User Controls

OBJECTIVES

  • Learn to create user controls

  • Learn to add user control properties and events

Microsoft provided a large set of server controls as part of ASP.NET, but it couldn't possibly imagine all the different scenarios that might require reusable “chunks” of user interface or code in your applications. ASP developers used “include files” as a way of encapsulating reusable functionality, but that technique had serious limitations. (If you've never dealt with the headache of scoping issues, public variable resolution, and the other problems involved with using include files, you won't see the joy in not having to do so. But believe us, include files were a mixed blessing.)

In order to allow you to create reusable ...

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.