Creating Web User Controls

Web user controls are very much like Windows user controls, with the obvious difference that they're designed for use in Web applications. Like user controls, Web user controls can be composites of other controls, or you can draw them from scratch. (Although your options for drawing them from scratch are more limited in Web user controls because of the limitations of browsers. One option is to make the Web user control display an image that you can change when the control is clicked, activated, and so on.)

Although Web user controls are based on the System.Web.UI.UserControl class, which is very different from the user control System.Windows.Forms.UserControl class, programming them is similar. To demonstrate just how ...

Get Microsoft® Visual C#® .NET 2003 Kick Start now with O’Reilly online learning.

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