showing db values on dropdownlist
Hi,
In a webform I have some textboxes and ddlist. From MS Sql db I will retrive some values and will display on the textboxes and ddlist.
For textboxes I can do the following
textBox1.Text=dr.GetValue(0).ToString();
textBox2.Text=dr.GetValue(1).ToString();
Now for ddlist what shall I use
ddlist1.????=dr.GetValue(2).ToString();
Thanks
Sachi