Chapter 6. Custom Controls vs. User Controls

In Chapter 4, and Chapter 5, we introduced the two models that ASP.NET provides for creating your own controls—the user control model and the custom control model. These two models are geared for different scenarios. In general, the user control model is well suited for authoring in-house, application-specific controls, while the custom (or compiled) control model is better suited for authoring generic and redistributable controls. In this brief chapter, we will compare the two models and provide some basic guidelines to help you decide which alternative is more suited to your particular needs.

Deployment

Deployment is the most important ...

Get Developing Microsoft® ASP.NET Server Controls and Components 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.