This chapter compared custom controls and user controls based on their characteristics. Table 6-1 provides recommendations for some of the common server control development scenarios. Table 6-1. Recommendations for Server Control Development Scenarios
This chapter should serve as a guide that helps you choose between the two control-authoring models provided by ASP.NET. At a high level, custom controls are suited for the creation of general purpose, redistributable, and oftentimes commercial class libraries, while user controls are suited for the creation of reusable user interfaces scoped to a single application or project. |