Chapter 14. Custom and User ControlsThis chapter discusses controls created by the developer. These are called custom controls, and a subset of them is called user controls. Custom controls are compiled controls that act, from the client's perspective, much like ASP.NET controls. Custom controls can be created in one of three ways:
All three of these methods , and the three control types that correspond to them, are variations on the same theme. We'll consider these custom controls later in this chapter. The simplest category of custom controls is a subset called user controls . Microsoft distinguishes user controls as a special case because they differ from other types of custom controls. In short, user controls are segments of ASP.NET pages that can be reused from within other pages. This is similar to "include files" familiar to ASP developers. However, user controls are far more powerful. User controls support properties and events and, thus, provide reusable functionality as well as reusable HTML. |