title: selected value for dropdownbox in asp.net mvc using selectlist
body: <p>i have following selectlist for dropdownbox in aspnet mvc.</p>
  
  <p>This is the editEmployee Action controller, so while edit page is displayed i want to display a selectvalue in dropdownbox,since "SelectList" takes 3 parameters one for value,one for text and other is for selected value, here i'm not getting what should i pass in 3rd parameter, coz its asking an object for selected value.</p>
  
  <pre>
  <code>
  ViewData["DepartmentList"] = new SelectList(DepartmentRepository.GetDepartmentsBySchoolIdInList(ViewData["schoolId"].ToString()),"DepartmentId","DepartmentTitle");
  </code>
  </pre>
  
  <p>here is the view</p>
  
  <pre>
  <code>
  =Html.DropDownList("DepartmentList")
  </code>
  </pre>