O'Reilly logo

ASP.NET by Example by Steven A. Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

One Step Beyond: VControls

Combining user controls (which we will cover in more detail in the next chapter) with validation controls can provide even greater re-use. For instance, the e-mail field is probably the most commonly seen form field, so why should you have to deal with the text box and several different validator controls every time you use one? The solution is to create what I've dubbed a VControl, or Validated Control. This is simply a user control that combines the necessary controls to display a single commonly used form field. An entire suite of VControls is a useful tool to have, and you can easily create your own library of them to suit your needs based on this example. I have created a variety of these tools, including VControls ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required