VB.Net, Webapp - Does anybody know how to add data to a DropDownList?
Equivalent to VB6: Combo1.AddItem "Hello There"
Thanks
Printable View
VB.Net, Webapp - Does anybody know how to add data to a DropDownList?
Equivalent to VB6: Combo1.AddItem "Hello There"
Thanks
If you are binding then you can do:
VB Code:
DropDown1.DataSource() = xxxx DropDown1.DataBind()
Or if you want to add individual items I think you can do (at least in winforms you can):
VB Code:
DropDown.Items.Add(xxxx)