Using Validators with Panels, Separating Form Sections

This code sample takes a previous code sample, ‘Using Panels to Separate Form Sections’ and enhances it, using three of the built in Validators of DotNet, the Required Field Validator, the Regular Expression Validator and the Compare Validator. Most of the fields use the Required Field Validator, but the Password verification in the last panel uses the Compare Validator, like many forms online do these days and the US Zip Code uses the Regular Expression Validator.

Luckily, the validation scenario works very will with Panels, as you will see when you try the live sample.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>