title: how to Bind dropdownList using Entity Framework in MVC 3
body: <p>i want to show a <code>dropdownList</code> on a page using <code>Entity Framework</code> in my <code>MVC</code> app, but i am just stuck here to do this using using HTML Helper. so if anyone having knowledge of entity framework, help me...</p>
  
  <p>my dataContext partial class is <code>Entities</code>, in which an entity named <code>MemberInfo</code> have some fields including <code>MemberID</code> &amp; <code>MemberName</code>, so my dropdownList should show the field <code>MemberName</code> &amp; behind this the value should be <code>MemberID</code>,</p>
  
  <p>the code i tried yet---></p>
  
  <pre><code>@Html.DropDownListFor(Model =&gt; Model.MemberID, MemberInfo)
  </code></pre>
  
  <p>in controller i am returning the Model---></p>
  
  <pre><code>var MemberNameList = FinanceDBContext.MemberInfoes.Select(x =&gt; new { x.MemberID, x.Name });
  return View(MemberNameList);  
  </code></pre>
  
  <p>but its not working (<code>errors</code>).</p>