title: RenderPartial control in same view folder
body: <p>I have a file in my view folder <code>Users</code> called <code>UserViewControl.cshtml</code>.</p>
  
  <p>My code in the actual view (<code>Users.cshtml</code>) is:</p>
  
  <pre><code>@Html.RenderPartial("RegisterViewControl")
  </code></pre>
  
  <p>Error:<code>The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments</code></p>
  
  <p>I do not want to type the path fully like this as the whole view folders might move in the future:</p>
  
  <pre><code>@Html.RenderPartial("~/Views/Users/RegisterViewControl.cshtml")
  </code></pre>
  
  <p>Code in <strong>RegisterViewControl.cshtml</strong>:</p>
  
  <pre><code>@model SampleMVC.Web.ViewModels.RegisterModel
  
  @using (Html.BeginForm("Register", "Auth", FormMethod.Post, new { Id = "ERForm" }))
  {
      @Html.TextBoxFor(model =&gt; model.Name)        
      @Html.TextBoxFor(model =&gt; model.Email)            
      @Html.PasswordFor(model =&gt; model.Password)          
  }
  </code></pre>
  
  <p>This is a form that will be submitted by ajax, but I want all the validation from the viewmodel.</p>