title: ASP.Net MVC: Partial view not rendering
body: <p>i am bit new in asp.net mvc. i am facing problem for very basic things that my Partial view not rendering. here is the details</p>
  
  <p>i have a main page and one partial view</p>
  
  <h2>main page action look like</h2>
  
  <pre><code>public ActionResult Index()
  {
      return View();
  }
  </code></pre>
  
  <p>main index view look like</p>
  
  <pre><code>@model Testing.Models.Employee
  
  @{
      ViewBag.Title = "Home Page";
  }
  
  &lt;div class="row"&gt;
  
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
      &lt;div id="formsIndex"&gt;
      @{
          Html.Partial("_TestForm");
      }
      &lt;/div&gt;
  &lt;/div&gt;
  
  @section scripts {
         &lt;script src="~/Scripts/jquery.unobtrusive-ajax.min.js"&gt;&lt;/script&gt;
  }
  </code></pre>
  
  <p>here i am showing a partial view like this way <code>Html.Partial("_TestForm");</code> but no UI comes for partial view.</p>
  
  <p>partial view code look like</p>
  
  <pre><code>@model Testing.Models.Employee
  
  @using (Ajax.BeginForm("Index", "Home", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "formsIndex" }))
  {
      @Html.AntiForgeryToken()
  
      &lt;div class="form-horizontal"&gt;
  
          @Html.ValidationSummary(true, "", new { @class = "text-danger" })
          &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.Name, htmlAttributes: new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.EditorFor(model =&gt; model.Name, new { htmlAttributes = new { @class = "form-control" } })
                  @Html.ValidationMessageFor(model =&gt; model.Name, "", new { @class = "text-danger" })
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.City, htmlAttributes: new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.EditorFor(model =&gt; model.City, new { htmlAttributes = new { @class = "form-control" } })
                  @Html.ValidationMessageFor(model =&gt; model.City, "", new { @class = "text-danger" })
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.Address, htmlAttributes: new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.EditorFor(model =&gt; model.Address, new { htmlAttributes = new { @class = "form-control" } })
                  @Html.ValidationMessageFor(model =&gt; model.Address, "", new { @class = "text-danger" })
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              &lt;div class="col-md-offset-2 col-md-10"&gt;
                  &lt;input type="submit" value="Save" class="btn btn-primary" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>when i pass model to partial view this way <code>Html.Partial("_TestForm", Model);</code> then also no UI comes.</p>
  
  <p>please tell me where i made the mistake ?</p>