title: How to set the value of dropdownlist from data table?
body: <p>I'm trying to bind dropdownlist from data table, where data table contain departmentID, and DepartmnentName. binding is successful, but how to set the value of the items?</p>
  
  <pre><code>    dt = objDeparment.SelectAll().Tables[0];
      foreach (DataRow dr in dt.Rows)
      {
          DropDownList1.Items.Add(dr[1].ToString()); //binding the dropdownlist with department names
      }
  </code></pre>