April 2002
Beginner
672 pages
14h 43m
English
You'll often need to ensure that users enter a value into a control on a page. To make this easy, ASP.NET provides its RequiredFieldValidator control. On the sample page, EmpMaint.aspx, users must supply values for the First Name, Last Name, Birth Date, and Hire Date fields. Leaving any of these blank isn't allowed, and you need some way to indicate this to users. Figure 8.1 shows the sample form, after a user has attempted to submit the page by clicking Save without filling in any information. This page displays individual indicators of the fields that must be supplied.
TIP
If you watch carefully as you test this page, you'll ...
Read now
Unlock full access