title: @Html.BeginForm Displaying "System.Web.Mvc.Html.MvcForm" on Page
body: <p>I have a razor view that I added a delete button to inside of an 'if' statement and when the view is rendered in the browser it is displaying <strong>"System.Web.Mvc.Html.MvcForm"</strong> next to the delete button. </p>
  
  <p>How do I get rid of it?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;div id="deletestatusupdate"&gt;
      @if (update.User.UserName.Equals(User.Identity.Name, StringComparison.OrdinalIgnoreCase))
      {
          @Html.BeginForm("deleteupdate", "home")
          @Html.Hidden("returnUrl", Request.Url.ToString())
          &lt;button name="id" value="@update.StatusUpdateId"&gt;Delete&lt;/button&gt;
      }
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Here is how it shows up in the rendered Razor View:</strong></p>
  
  <p><em>System.Web.Mvc.Html.MvcForm</em> <strong>[Delete Button]</strong></p>
  
  <p>pretend that [delete button] is a an actual button, didn't feel like taking a screen shot.</p>
  
  <p>Thank you for your help.</p>