Importance of validating an interactive user form
Here is one of form validation error messages that made me laugh aloud : “invalid last name. The form (or the souls that coded that form) decided my last name is bad and imagine, they want me to build a valid last name too!
It is necessary to educate web developers that web security is something that should be handled separately.Drag one Text Box control and give it an ID of First Name Text Box, two Button controls (Submit Button and Cancel Button), and one Required Field Validator (First Name Required Field Validator). The following screen shows the form in action, and the user has pressed the Submit button without entering any text into the textbox. The Required Field Validator fails when the value in the associated control matches the value of the Initial Value property of the Required Field Validator.This Required Field Validator forces the user to enter text into the control associated with the validator. If you want to make sure the user changes a default value placed into the control, set the control’s Text value and the Initial Value property of the Required Field Validator to the same value.In the walkthrough, you will create a page for a Web site that allows visitors to request a reservation.
Because the purpose of the walkthrough is to illustrate validation, the nature of the reservation is not important (for example, if could be for a restaurant, a community center meeting room, or something else), and the page does not actually process the reservation.
A couple of years ago I saw Twitter’s form validation for the first time and I was absolutely amazed.