title: ASP.NET MVC EnableClientValidation
body: <p>Does this <code>&lt;% Html.EnableClientValidation(); %&gt;</code> really enable client validation that validation without <strong>page refresh</strong> or not?</p>
  
  <p>The thing is that it is doing a page refresh while returning formviewmodal ,it is working fine when using modal ? So how will i make it work using formviewmodal</p>
  
  <p>here is the code of the controller returning FormViewModel</p>
  
  <pre><code>public class OrganizationGroupFormViewModel
  {      
      public OrganizationGroup OrganizationGroups { get; set; }
      public OrganizationGroupFormViewModel() { }
  
      public OrganizationGroupFormViewModel(OrganizationGroup OrganizationG)
      {
          OrganizationGroups = OrganizationG; 
      }
  }
  
  public class OrganizationGroupsController : Controller
  {
      public ActionResult Create()
      {       
          OrganizationGroup OrgGroup = new OrganizationGroup
          {
              int_CreatedBy = Authorization.UserID,
              dtm_CreatedDate = DateTime.Now
          };
          return View(new OrganizationGroupFormViewModel(OrgGroup));     
      }
  
      [HttpPost]
      public ActionResult Create(OrganizationGroup OrgGroup)
      {
          try
          {
            if (ModelState.IsValid)
             {
               OrgGroup.int_CreatedBy = Authorization.UserID;
               OrgGroup.dtm_CreatedDate = DateTime.Now;
  
               OrganizationGroupRepository.Add(OrgGroup);
               OrganizationGroupRepository.Save();
  
               return View(new OrganizationGroupFormViewModel(OrgGroup));
            }
            else
                return View(new OrganizationGroupFormViewModel(OrgGroup));
          }
          catch
          {
              return View(new OrganizationGroupFormViewModel(OrgGroup));
          }
      }
  </code></pre>