|
In the example above you can see our First Name textbox is called "FName". We've set the required field validator ControlToValidate=FName so people can't
submit the form without entering anything. By putting this into a separate column in our HTML table we'll get a nicely aligned red * next to textbox and as we add more html fields
they will all lignup in the same column.
The regular expression validator performs our data checking. Again the ControlToValidate is set to FName.
As our example continues below we have a complete contact form using First Name, Last Name, Street Address, City, State, Zip, Email, and a Question field. We've included a helpful "I prefered to be contacted by"
radio button in case vistor wants to choose between a phone call or email.
|