RequiredFieldValidator

The RequiredFieldValidator control ensures that the required field is not empty. It is generally tied to a text box to force input into the text box.

Example

Leave following text field blank and click on submit button to check validation


View Source Code