"Collection was modified; enumeration operation may not execute."
Dim item As ListItem
For Each item In drpPrivate.Items
drpPrivate.Items.Remove(item)
Next item
Please could you tell me how to remove all the items from a dropdownlist without resorting to EnableViewState="false"
drpPrivate.Items.Clear()
0 comments:
Post a Comment