title: Fill ComboBox with data from SQL Server
body: <p>I want to fill a ComboBox with data from sql server and I use the code below, but it doesn't work:</p>
  
  <pre><code>protected void FillComboBox()
  {
      SqlDataAdapter da = new SqlDataAdapter("SELECT ItemName FROM TBItemList", oSqlConn);
      DataTable dt = new DataTable();
      da.Fill(dt);
      {
           cbxparameter.Items.Add(dt.ToString());
      }
  }
  </code></pre>
  
  <p>Then to make sure my code is okay I'm trying to debug, but I can't know where the trouble lies. Why?</p>