title: How to update my View after Ajax Post
body: <p>I am in MVC environment and I am calling one of my Controller methods from my View. Controller method subsequently does some validation check and returns to the same view with <strong>faulty modelstate</strong></p>
  
  <p>At this point, I am expecting all of my validation fields which look like following: </p>
  
  <pre><code>&lt;td&gt;@Html.ValidationMessageFor(m =&gt; m.Comments)&lt;/td&gt;
  </code></pre>
  
  <p>to light up with error messages. That is not happening. I think it is because I need to reload the view with new <strong>faulty Model</strong>. How can I do that?</p>
  
  <p>Following is snipped from my Ajax code:</p>
  
  <pre><code>$("#Save").click(function () {
          var model = {
              ApplicationNumber: '@Model.ApplicationNumber',
              ApplicationId :'@Model.ApplicationId' ,
              Name: $('#Name').val(),
              CreateDate: $('#CreateDate').val(),
              OverrideHireDate: $('#OverrideHireDate').val(),
              Amount: $('#Amount').val(),
              VendorId: $('#Vendor').val(),
              Comments: $('#Comments').val(),
              CurrentState: '@Model.CurrentState',
              CurrentStatusDate: '@Model.CurrentStatusDate'
      };
          $.ajax({
              data: model,
              url: '@Url.Action("SaveApplication", "Applications")',
              type: "POST",
              success: function (result) {
                  $(function () {
                      // some code to activate validation controls?
                  });
              }
          });
      });
  </code></pre>
  
  <p>Following is my controller:</p>
  
  <pre><code>public ActionResult SaveApplication(ApplicationModel application)
          {
              if (!ModelState.IsValid)
              {
                 // ModelState.AddModelError("Name", "This is a Test");
                  return View("New",application);
              }
  
              ApplicationBLL.SaveApplication(application);
              return Content(string.Empty);
          }
  </code></pre>