Home   |   QuickStart Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   
  |   I want my samples in...      

ASP.NET 2.0 Quickstart Tutorials

RequiredFieldValidator

The RequiredFieldValidator control ensures that the user does not skip an entry. The control fails validation if the value it contains does not change from its initial value when validation is performed. If all the fields in the page are valid, the page is valid.

The following sample illustrates using the RequiredFieldValidator control.

VB ReqFieldValidator1.aspx
Run Sample View Source

For a detailed discussion of Web Forms validation, please see the Validating Form Input Controls section of this QuickStart tutorial.