Posts
664
Comments
559
Trackbacks
1
.NET: Selecting DropDownList Item by Some Text or Value

myDropDown.SelectedIndex = myDropDown.Items.IndexOf(myDropDown.items.FindByText(Text))

myDropDown.SelectedIndex = myDropDown.Items.IndexOf(myDropDown.items.FindByValue(Value))

posted on Sunday, February 04, 2007 6:17 AM
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 3 and 2 and type the answer here: