Chapter 21. Design-Time Support for Custom Controls

 

What you cannot enforce, do not command.

 
 --Sophocles

A server control has two distinct sets of functionality—run-time and design-time capabilities. The run-time capabilities show up when the control is embedded in a page and served to the browser. The design-time capabilities integrate with a visual designer such as Microsoft Visual Studio .NET and let the programmer configure the appearance and behavior of the control in a declarative manner. ASP.NET custom controls can be architected to integrate with the designer just like standard and built-in controls.

A control inherits some basic design-time capabilities from the base class Control. All controls can be dragged from the toolbox and dropped ...

Get Programming Microsoft® ASP.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.