title: Setting default value to Html.DropDownListFor
body: <p>I am populating a dropdownlist in mvc using viewbag.
  i want to set a default value to this dropdownlist, if the page is not saved with any other value.
  Otherwise the selected item should be the one they select and save the page.</p>
  
  <p>this is how i populate my viewbag</p>
  
  <pre><code>ViewBag.ListOfCountries = new SelectList(Db.Countries, "CountryCode", "CountryName");
  </code></pre>
  
  <p>this is the view side:</p>
  
  <pre><code>&lt;%: Html.DropDownListFor(m =&gt; m.OfficeAddressCountry, (IEnumerable&lt;SelectListItem&gt;)ViewBag.ListOfCountries, new{@class="required"}) %&gt;
  </code></pre>