scottie_uk
April 17th, 2003, 05:48 PM
I am using WEB MATRIX for my ASP coding. I am having trouble lots of trouble, trying to all items to a drop down list box.
First I tried:
while (dataTable.rows.count > X)
ddlAccom.items.add (dataTable (x) (0))
x = x +1
end while
This did not work then I tried
ddlAccom.databind()
This failed
I tried
ddlAccom.items.add ("stuff")
it would still not put an item in.
Please what is the best way of binding data to a dropdown list box??
scottie.uk
First I tried:
while (dataTable.rows.count > X)
ddlAccom.items.add (dataTable (x) (0))
x = x +1
end while
This did not work then I tried
ddlAccom.databind()
This failed
I tried
ddlAccom.items.add ("stuff")
it would still not put an item in.
Please what is the best way of binding data to a dropdown list box??
scottie.uk