title: how to bind dropdownlist in view dynamically ? mvc4
body: <p>I want to replace this code in my view </p>
  
  <p><strong>Code :</strong></p>
  
  <pre><code>&lt;label for="name"&gt;Lead Source&lt;/label&gt;&lt;select name="Lead_Source" id="Lead_Source" rel="2"&gt;
                                          &lt;option value="1"&gt;News Papers &lt;/option&gt;
                                          &lt;option value="2"&gt;Internet&lt;/option&gt;
                                          &lt;option value="3"&gt;Social networking&lt;/option&gt;
                                           &lt;option value="4"&gt;Others&lt;/option&gt;
                                          &lt;/select&gt; 
  </code></pre>
  
  <p>I want to replace with Dropdownlist so I will bind data dynamically by I am getting undone by work .</p>
  
  <p><strong>I tried like this:</strong></p>
  
  <pre><code>&lt;label for="name"&gt;Lead Source&lt;/label&gt; @Html.DropDownListFor(c=&gt;c.Lead_Source, Model.Lead_Source_List,"--Select Source--");
  </code></pre>
  
  <p><strong>The error i am getting after i replace static code is</strong> </p>
  
  <pre><code> CS1928: 'System.Web.Mvc.HtmlHelper&lt;Ibs.Iportal.Iwise.Web.Models.LeadSortModel&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;, object)' has some invalid arguments
  </code></pre>
  
  <p>EDIT : I am passing a model to view which contain a Lead_Source_List of enumerable list data</p>
  
  <p>Regards</p>