title: Populating ASP.NET MVC DropDownList
body: <p>OK, I've been Googling for hours and trying everything and can't get anything to work. I am learning MVC using Sharp Architecture and have generated some basic forms for creating Client objects. I want to fill the state drop down list with a list of US states and let the user pick from that list. I am able to populate the list and get the value back (to save the client) but when I go to edit the client, the client's current state is not selected. I have set the selected value in the SelectList:</p>
  
  <pre><code>&lt;li&gt;
      &lt;label for="Client_StateProvince"&gt;StateProvince:&lt;/label&gt;
      &lt;div&gt;
          &lt;%= Html.DropDownListFor(c=&gt;c.Client.StateProvince, new SelectList(Model.StateProvinces, "id", "Name", Model.Client.StateProvince), "-- Select State --")%&gt;
      &lt;/div&gt;
      &lt;%= Html.ValidationMessage("Client.StateProvince")%&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>This does not seem to be good enough. What am I missing?</p>