herodotus299
New member
- Joined
- Jul 21, 2006
- Messages
- 1
I have a weird problem. Im trying to populate a drop down list (ddlField01). When I debug, I can see the data in my Dataset, but after the auto postback, I dont see the value displayed. Here is what Im using.
ddlField01.Text = dsMyDataset.Tables[0].Rows[0].ItemArray[1].ToString();
If I change it to a text box, it works fine.
txtlField01.Text = dsMyDataset.Tables[0].Rows[0].ItemArray[1].ToString();
The syntax I use for the drop down list is used in a few other drop downs without problem. Any ideas?
Thanks,
Jeremy
ddlField01.Text = dsMyDataset.Tables[0].Rows[0].ItemArray[1].ToString();
If I change it to a text box, it works fine.
txtlField01.Text = dsMyDataset.Tables[0].Rows[0].ItemArray[1].ToString();
The syntax I use for the drop down list is used in a few other drop downs without problem. Any ideas?
Thanks,
Jeremy