HTML and CSS Reference
Figure 6-6. Employee list web form
The web form shows employee names from the Employees table of the Northwind database along with
their BirthDate and HireDate values. The user can select the respective dates and click the Save button.
Clicking Save triggers validation logic that checks whether the employee is at least 18 years old at the time
of hiring. If not, an error message is displayed to the user in an alert box. The validation message isn't
embedded anywhere in the code; rather, it's stored in a database table named ErrorMessages . The
ErrorMessages table has a simple structure, as shown in its Entity Framework data model (Figure 6-7).
Figure 6-7. Data model for the ErrorMessages table