sachi vasishta

sachi vasishta

  • NA
  • 252
  • 0

showing db values on dropdownlist

Nov 12 2009 9:06 AM
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

Answers (3)