title: Umbraco Partial View Macro
body: <p>I am new to Umbraco and MVC but not to Webforms. I have a partial view that works fine in an Umbraco template, but I would also like it to be available in the content rich text editor, not just in the templates.</p>
  
  <p>The template calls the partial view like:</p>
  
  <pre><code>@Html.Partial("ContactForm", new Mynamespace.UmbracoCms.ContactFormModel())
  </code></pre>
  
  <p>Under Partial View Macro Files on the Developer tab in the Umbraco back office, I have added the .cshtml file for the partial view.</p>
  
  <pre><code>@inherits Umbraco.Web.Mvc.UmbracoViewPage&lt;Mynamespace.UmbracoCms.ContactFormModel&gt;
  @{
      Layout = null;
  }
  
  &lt;h3&gt;Contact Form&lt;/h3&gt;
  @using (Html.BeginUmbracoForm("SendEmail", "ContactFormSurface"))
  {
      &lt;div class="formRow"&gt;
          @Html.LabelFor(x =&gt; Model.Name)
          @Html.EditorFor(x =&gt; Model.Name)
          @Html.ValidationMessageFor(x =&gt; Model.Name)
          &lt;/div&gt;
  
      &lt;div class="formRow"&gt;
          @Html.LabelFor(x =&gt; Model.Email)
          @Html.EditorFor(x =&gt; Model.Email)
          @Html.ValidationMessageFor(x =&gt; Model.Email)
          &lt;/div&gt;
  
      &lt;div class="formRow"&gt;
          @Html.LabelFor(x =&gt; Model.Comment)
          @Html.EditorFor(x =&gt; Model.Comment)
          @Html.ValidationMessageFor(x =&gt; Model.Comment)
          &lt;/div&gt;
  
  
  &lt;div class="buttonRow"&gt;
      &lt;input type="submit" name="Submit"/&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>I am obviously missing something, yet I cannot find any documentation or tutorials to accomplish what I am looking for. </p>
  
  <p>Thanks for any help you can provide!</p>