Friday, May 3, 2013

ASP.NET MVC 3 - Client and Server Side Validation

Out of the box:

Notice how client-side validation is still working nicely. We did not need to enable client-side validation manually in the template as before, this is because ASP.NET MVC 3 already has it enabled by default. We did also hide the "Back" button on first step using javascript. We cannot submit the form until all information is correct. Even if a user bypasses javascript validation (which can be easily done), the form will be re-displayed again.
http://afana.me/post/create-wizard-in-aspnet-mvc-3.aspx

No comments:

Post a Comment