ASP.NET - find the index of an item in a dropdownlist given the items value
Posted on 2008-06-12
I have a drop-down list on my page that I'm trying to have set to a specific index when the page loads. The value of one of the items in the drop-down list is being passed into the page. I'm trying to locate the item in the drop-down list that has that value and set the drop-down list's selected index to be the item that has the value that was passed in.