Using SelectedItem would not work. SelectedItem is the ListItem that is selected. If you were do this server side, you would need to use FindByText() or FindByValue(). However, if you needed to do a partial text search (to find a closest match) then you'd need to iterate thru all the ListItems in the Items() collection and then see if the search string is in the ListItem.Text or ListItem.Value.
Peter
------------------------------------------------------
Work smarter, not harder.
|