Validating input in vb net
The server side validation routine must be called from the control's Server Validate event handler. The basic syntax for the control is as given: The Validation Summary control does not perform any validation but shows a summary of all errors in the page.The server side validation routine should be written in any . The summary displays the values of the Error Message property of all validation controls that failed validation.
You can validate the data as the data is entered in a control by reading the keys as they are pressed, or more commonly whenever the user takes the input focus away from one control and moves to the next.The following example describes a form to be filled up by all the students of a school, divided into four houses, for electing the school president.