title: Trouble getting DropDownListFor to work on EditorFor in MVC3
body: <p>I've got a pretty simple problem that has a solution I'm not able to find.</p>
  
  <p>Given the following model:</p>
  
  <pre><code>public class InfoViewModel
  {
      public SelectList States { get; set; }
  
      [DisplayName("State")]
      public string State { get; set; }
  }
  </code></pre>
  
  <p>The following works fine in my view:</p>
  
  <pre><code>@Html.DropDownListFor(m =&gt; m.State, Model.States)
  </code></pre>
  
  <p>However, if I try to pull this into an editor template (named "SelectList"), such as:</p>
  
  <pre><code>@model System.String
  @Html.DropDownListFor(m =&gt; m, ViewData["selectList"])
  </code></pre>
  
  <p>And then use <code>EditorFor</code> to build the dropdown list:</p>
  
  <pre><code>@Html.EditorFor(m =&gt; m.State, "SelectList", new { selectList = Model.States })
  </code></pre>
  
  <p>It fails with the following error:</p>
  
  <pre><code>'System.Web.Mvc.HtmlHelper&lt;string&gt;' does not contain a definition for 
  'DropDownListFor' and the best extension method overload 
  'System.Web.Mvc.Html.SelectExtensions.DropDownListFor&lt;TModel,TProperty&gt;
  (System.Web.Mvc.HtmlHelper&lt;TModel&gt;, 
  System.Linq.Expressions.Expression&lt;System.Func&lt;TModel,TProperty&gt;&gt;, 
  System.Collections.Generic.IEnumerable&lt;System.Web.Mvc.SelectListItem&gt;)' 
  has some invalid arguments
  </code></pre>
  
  <p>I'm having a hard time understanding the difference between these two.  I've tried various workarounds to troubleshoot, and either get the same error, or something else.</p>
  
  <p>Thanks in advance.</p>