title: using Html.BeginForm putting content after the closing </form> tag
body: <p>So I have a partial view inside which I am creating a form</p>
  
  <pre><code>@using(Html.BeginForm("UpdateTimesheet", "Entry", FormMethod.Post, new { id = @i }))
  {
      &lt;td&gt;@Html.DropDownListFor(x =&gt; x.TimeEntry.LocationId, Model.LocationList, "Please select a location")&lt;/td&gt;
      &lt;td&gt;@Html.DropDownListFor(x =&gt; x.TimeEntry.Equipment.Code, Model.EquipmentList, "Please select equipment")&lt;/td&gt;
      &lt;td&gt;@Html.DropDownListFor(x =&gt; x.TimeEntry.Staff.PayrollId, Model.StaffList, "Please select staff")&lt;/td&gt;
      &lt;td&gt;@Html.DropDownListFor(x =&gt; x.TimeEntry.Task.Name, Model.TaskList, "Please select a task")&lt;/td&gt;
      &lt;td&gt;@Html.EditorFor(x =&gt; x.TimeEntry.LengthOfTime)&lt;/td&gt;
      &lt;td&gt;@Html.DisplayFor(x =&gt; x.TimeEntry.EventDateTime)&lt;/td&gt;
      &lt;td&gt;@Html.DisplayFor(x =&gt; x.TimeEntry.ReceivedDateTime)&lt;/td&gt;
      &lt;td&gt;
          @Html.ActionLink("Cancel", "DisplayTimesheet", new { id = Model.TimeEntry.Id }, new { @class = "edit" })
          | 
          &lt;a style="cursor: pointer" onclick="submitEdit(@i);"&gt;Save&lt;/a&gt;
      &lt;/td&gt;
  }
  </code></pre>
  
  <p>But the HTML being rendered has the form closing immediately, followed by the html inside the curly braces. For example:</p>
  
  <pre><code>&lt;form action="/Entry/UpdateTimesheet" id="edit1" method="post"&gt;&lt;/form&gt;
  &lt;td&gt;
      &lt;select data-val="true" data-val-number="The field LocationId must be a number." id="TimeEntry_LocationId" name="TimeEntry.LocationId"&gt;
          &lt;option value=""&gt;Please select a location&lt;/option&gt;
          &lt;option value="1"&gt;Location 1&lt;/option&gt;
          &lt;option selected="selected" value="3"&gt;Location 1&lt;/option&gt;
      &lt;/select&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>and so on. This partial view is being inserted into a table row ()</p>
  
  <p>Any ideas why this is happening and how I can fix it?</p>