HTML and CSS Reference
In-Depth Information
Figure 5-24. Employee Data Entry form with a validation error
Designing a User Registration Form
In this section, you develop an ASP.NET MVC application that displays a User Registration page. Unlike the
Employee Data Entry form you developed in the preceding section, the User Registration page performs
validations on the client side as well as the server side. The client-side validations are performed using
HTML5 features you learned about in this chapter, and the server-side validations use data annotation
attributes. Further, the client-side validations are handled using the invalid event so that validation
messages (client as well as server) are displayed in a consistent way. Figure 5-25 shows the User
Registration page.
Search WWH ::

Custom Search