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 ...
Get ASP.NET by Example 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.