title: Dropdownlist in asp.net mvc technical working reference
body: <p>I have invested my few hours figuring out how to work with dropdownlists..
  finally I have a working piece of code.. but I do not know how it works.</p>
  
  <p><a href="http://www.youtube.com/watch?v=79aYSOcmpV8&amp;list=PL6n9fhu94yhVm6S8I2xd6nYz2ZORd7X2v" rel="nofollow">http://www.youtube.com/watch?v=79aYSOcmpV8&amp;list=PL6n9fhu94yhVm6S8I2xd6nYz2ZORd7X2v</a></p>
  
  <p>In Controller.</p>
  
  <pre><code>ViewBag.Breed = new SelectList(db.Breeds, "breed", "breed");
  </code></pre>
  
  <p>In view</p>
  
  <pre><code>@Html.DropDownList("Breed", "Select Breed")
  </code></pre>
  
  <p>How does it works??</p>