title: EditorFor with the same model type twice
body: <p>I'm dealing with this problem.</p>
  
  <p>I'm using <code>EditorFor</code> for a model which is an abstract class.</p>
  
  <pre><code>@model Contoso.Core.Base.Question
  
  @Html.HiddenFor(model =&gt; Model.Id)
  @Html.Hidden("ModelType", Model.GetType().AssemblyQualifiedName)
  
  @Html.EditorFor(model =&gt; Model, Contoso.Core.QuestionRepositoryManager.GetQuestionView(Model))
  </code></pre>
  
  <p>As you can above, later invoke a concrete editor for the model and what does MVC is only render the first one (I mean, print hidden input fields "Id and ModelType", but not for the inputs in the concrete <code>EditorFor</code>).</p>
  
  <p>How can I do to print these two <code>EditorFor</code>? I was reading about using <code>PartialView</code>, but I don't like this idea because I don't know how to bind these properties in the <code>POST Method</code>.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <ol>
  <li><p>I'm not sure if do I have to modify the prefixHtml to fix this?</p>
  
  <p>ViewData.TemplateInfo.HtmlFieldPrefix = ...</p></li>
  <li><p>It renders the second template because if I change to <code>Editor</code> instead of <code>EditorFor</code></p>
  
  <p>@Html.Editor("abc", Contoso.Core.QuestionRepositoryManager.GetQuestionView(Model))</p></li>
  </ol>