Archives

Archives / 2008 / August
  • ASP.NET MVC Validations using MVCContrib

    In my earlier post, I have explained how to use MVCContrib Grid in ASP.net MVC application. In this post, I demonstrate how you can use ASP.net MVC client side validation using the MVCContrib Validation helpers.  MVCContrib is a cool contrib project to ASP.net MVC that extends the functionalities of an ASP.net MVC application and it provides rich set of validation helpers and it also provides different validation groups. The MVCContrib project can download from http://www.CodePlex.com/MvcContrib.

    The following are the steps to get Validation Helpers to work:

    Step1

    Add a reference to the MvcContrib assembly (download available from http://www.CodePlex.com/MvcContrib)

    Step 2

    Add namespace import for MvcContrib to your web.config file: