title: Model validation is not working in Partial View
body: <p>Hi All I am very new in MVC . So Please Help Me</p>
  
  <p>My Question is .. I am using Partial View as below</p>
  
  <pre><code> @model IELTS_TEST.Models.StatusMaster @{
       Layout = null; } &lt;script src="~/Scripts/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;script
   src="~/Scripts/jquery.validate.min.js"&gt;&lt;/script&gt; &lt;script
   src="~/Scripts/jquery.validate.unobtrusive.min.js"&gt;&lt;/script&gt;
  
   @using (Html.BeginForm("Create", "Status", "POST")) {
       @Html.ValidationSummary(true)
  
          &lt;fieldset&gt;
          &lt;legend&gt;Create New Status&lt;/legend&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.STATUSDESC)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.STATUSDESC)
              @Html.ValidationMessageFor(model =&gt; model.STATUSDESC)
          &lt;/div&gt;
          &lt;p&gt;
              &lt;button type="submit" id="btnSave" name="Command" value="Save" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"&gt;
                  &lt;span class="ui-button-text"&gt;Save&lt;/span&gt;&lt;/button&gt;
              &lt;/p&gt;
          &lt;/fieldset&gt; }
  
  &lt;div&gt;
      @Html.ActionLink("Close", "StatusMaster") &lt;/div&gt;
  </code></pre>
  
  <p>and my controller look like</p>
  
  <pre><code>public ActionResult CreateStatus()
      {
          try
          {
              if (Request.IsAjaxRequest())
              {
                  ViewBag.IsUpdate = false;
                  return View("_Create");
              }
              else
                  return View();
          }
          catch (Exception ex)
          {
              throw ex;
          }
      }
  
      [HttpPost]
      public ActionResult Create(IELTS_TEST.Models.StatusMaster objStatusMaster, String Command)
      {
          try
          {
              if (!ModelState.IsValid)
              {
                  return PartialView("_Create", objStatusMaster);
              }
              else
              {
                  if (IELTS_TEST.Models.StatusMaster.SaveStatus(objStatusMaster))
                  {
                      TempData["Msg"] = "Status added succeessfully";
                      ModelState.Clear();
                      return RedirectToAction("StatusMaster", "Status");
                  }
  
              }
              return PartialView("_Create", objStatusMaster);
          }
          catch (Exception ex)
          {
              throw ex;
          }
      }
  </code></pre>
  
  <p>and the model class is ...    </p>
  
  <p>`</p>
  
  <pre><code>public class StatusMaster
          {
              public int statusid { get; set; }
  
              [Required(ErrorMessage = "Please Provide Status Description!")]
              [StringLength(50, ErrorMessage = "Status Description cannot be more than 50 characters long!")]
              [Display(Name = "Status Description")]
              public string statusdesc { get; set; }
  
  
              public int makerid { get; set; }
              public DateTime makerdate { get; set; }
              public int modiid{ get; set; }
              public DateTime modefieddate{ get; set; }
      }`
  </code></pre>
  
  <p>So My Partial view is opened as Popup ...</p>
  
  <p>But the problem is No Model Validation is perform in client side.. </p>
  
  <p>Page goes to server side and popup does not exists any more in the page</p>