Exercise 4: Using Unobtrusive jQuery at Client Side
In this exercise, you will learn how to enable MVC 3 Unobtrusive jQuery validation at client side. For that reason you will include jQuery libraries into the Master Page and enable unobtrusive jQuery globally.
Task 1 – Running the Application before Enabling Unobtrusive jQuery
Task 2 – Enabling Client Validation from Web.config
In this task, you will enable unobtrusive jQuery client validation from Web.config file, which is by default set to false in all new ASP.NET MVC 3 projects.
Task 3 – Adding Unobtrusive jQuery to Master Page
In this task, you will add the unobtrusive jQuery references into the Master Page.
Task 4 – Running the Application Using Unobtrusive jQuery Validation
In this task, you will test that the StoreManager create view template performs client side validation using jQuery libraries when the user creates a new album.