removing items from dropdownlist:
I have 2 dropdownlist defined in a file, both of them gets text and value from DB. aspx file has a delete link, to delete the item from the DB. I wrote a fn that deletes the value from DB but the dropdown still displays the old value as i assign those values in pageload.
Inorder to display the current valid values , either i need to reload the dropdown or delete that particulat item from dropdown as well.
Can anyone suggest me how do I delete the Item from the dropdown, using the value?
here is the piece of code from pageload
-------------------------
Do While Not objRS.EOF
DropDown1.Items.Add(New ListItem(CType(objRS("NAME").value, String), objRS("USERID").value))
objRS.MoveNext()
Loop
------------------------
I delete the row with userId
Thanks,
...
Go to the complete details ...