title: C# MVC - returning PartialView not showing the full page
body: <p>I'm running into issues with my controller returning a partialview.</p>
  
  <p>This is what my Controller looks like:</p>
  
  <pre><code>[HttpPost]
      public ActionResult ProcessSubmit(IEnumerable&lt;HttpPostedFileBase&gt; attachments, Models.FloorPlan.FloorPlanModel F)
      {
          F.FloorPlanList = null;
          if (ModelState.IsValid)
          {
              //if (Models.FloorPlan.Repository.FloorPlanMethods.AddFloorPlan(F))
              //{
                  if (attachments != null &amp;&amp; attachments.Count() == 1)
                  {
                      foreach (var file in attachments)
                      {
                          // Some browsers send file names with full path. We only care about the file name.
                          var fileName = Path.GetFileName(file.FileName);
                          var destinationPath = Path.Combine(Server.MapPath("~/App_Data"), fileName);
  
                          file.SaveAs(destinationPath);
                          F.Photo = destinationPath;
                          Models.FloorPlan.Repository.FloorPlanMethods.AddFloorPlan(F);
                      }
                  }
              //}
          }
          Mvc.Models.FloorPlan.FloorPlanModel _floorPlanModel = new Models.FloorPlan.FloorPlanModel();
          _floorPlanModel.FloorPlanList = Mvc.Models.FloorPlan.Repository.FloorPlanMethods.GetFloorPlansAll(F.PropertyID);
          _floorPlanModel.PropertyID = F.PropertyID;
  
          return PartialView("~/Views/FloorPlan/Index.cshtml", _floorPlanModel);
          //return View("~/Views/FloorPlan/Index.cshtml", _floorPlanModel);
      }
  </code></pre>
  
  <p>This is what my View looks like:</p>
  
  <pre><code>@model Web.CMS.Mvc.Models.FloorPlan.FloorPlanModel
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  @using (Html.BeginForm("ProcessSubmit", "FloorPlan", FormMethod.Post, new { id = "uploadForm", encrypt = "multipart/form-data" }))
  {
      @Html.ValidationSummary(false, "Please fix these errors.")
  
      &lt;div class="H1"&gt;
      Floor Plans &amp; Pricing
      &lt;/div&gt;
      &lt;!--&lt;div class="iconAdd fl pt5 w120" onclick="FloorPlan_AddFloorPlan(); return false;"&gt;
          &lt;a&gt;&lt;/a&gt;
      &lt;/div&gt;//--&gt;
      &lt;div class="fl clr" style="width: 600px;"&gt;
          &lt;ul class="fl"&gt;
              &lt;li class="w110"&gt;Name &lt;/li&gt;
              &lt;li class="w110"&gt;Beds &lt;/li&gt;
              &lt;li class="w110"&gt;Baths &lt;/li&gt;
              &lt;li class="w110"&gt;Sq Ft &lt;/li&gt;
              &lt;li class="w110"&gt;Price&lt;/li&gt;
              &lt;li class="w110"&gt;Text &lt;/li&gt;
              &lt;li class="w110"&gt;Photo &lt;/li&gt;
          &lt;/ul&gt;
  
          &lt;ul class="fl"&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.Name)&lt;/li&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.Bedrooms)&lt;/li&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.Bathrooms)&lt;/li&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.SquareFeet)&lt;/li&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.Price)&lt;/li&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.Body)&lt;/li&gt;
              &lt;li&gt;@Html.TextBoxFor(f =&gt; f.Photo)
                  @(Html.Telerik().Upload()
                      .Name("attachments")
                      .Multiple(false)
                  )
                  &lt;div class="iconBrowse fr pt5"&gt;&lt;/div&gt;
                  &lt;input type="submit" value="Send" class="t-button" /&gt;
                  &lt;input type="reset" value="Reset" class="t-button" /&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;br /&gt;
      &lt;div class="clr"&gt;
      &lt;input type="button" onclick="javascript: FloorPlan_AddFloorPlan(); return false;" value="Save" /&gt;
      @(Html.Telerik().Grid(Model.FloorPlanList)
              .DataKeys(k =&gt; k.Add(o =&gt; o.FloorPlanID))
              .DataBinding(dataBinding =&gt; dataBinding
                  .Ajax()
                      .Select("Index", "Home")
                      .Delete("Delete", "FloorPlan"))
              .Name("FloorPlanListGrid")
              .Scrollable()
              .Pageable()
              .Selectable()
              .Columns(col =&gt;
              {
                  col.Bound(c =&gt; c.Name);
                  col.Bound(c =&gt; c.Photo);
                  col.Bound(c =&gt; c.Body);
                  col.Bound(c =&gt; c.Bedrooms);
                  col.Bound(c =&gt; c.Bathrooms);
                  col.Bound(c =&gt; c.Price);
                  col.Bound(c =&gt; c.SquareFeet);
                  col.Command(commands =&gt;
                  {
                      commands.Delete();
                  }).Width(100);
              })
          )
          @Html.HiddenFor(x =&gt; x.PropertyID)
      &lt;/div&gt;  
  
  }
  &lt;script src="@Url.Content("~/Scripts/floorplan.index.debug.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The resulting page only contains the actual data between the after the 'Form' tag in my View.</p>