i do the to scenarios but one only work
all i do is i populate the dropdownlist control with some rows retrieved from a Database table(only two fields returned),BUT
the problem seam to be with ListItem Class but why?
the follows are the two scenarios
scenario1:
dim listItem1 as new listitem
while datareader1.read
listItem1.value=datareader1("ID")
listItem1.Text=datareader1("Name")
DropDownList.items.add(listItem1)
loop
scenario2:
while datareader1.read
dim listItem1 as new listitem
listItem1.value=datareader1("ID")
listItem1.Text=datareader1("Name")
DropDownList.items.add(listItem1)
loop
but only scenario2 is the working one, do any one have an explaination
Ahmed Ali
Software Developer