Exercise 4: Using Unobtrusive jQuery at Client SideIn 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.
Note:
The Unobtrusive jQuery uses data-ajax prefix JavaScript to invoke action methods on the server rather than intrusively emitting inline client scripts.
Task 1 – Running the Application before Enabling Unobtrusive jQuery
Task 2 – Enabling Client Validation from Web.configIn 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 PageIn this task, you will add the unobtrusive jQuery references into the Master Page.
Task 4 – Running the Application Using Unobtrusive jQuery ValidationIn 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.
Next Step |
DownloadsDownload The Offline Training Kit Contents |