How do you remove items from an ASP.NET Drop Down List without knowing anything about contents
asp.net
Solution
you could grab the first element and store it in a local variable, then remove all items (Clear method) and finally add the first element again.
Problem
I have a drop down list in ASP.NET. I want to remove every item from this list apart from the first one. I see there is a Remove methond on items but it dosn't seeem to meet my needs. Can this be done?