Hi, Iam using a dropdown list ,in that am having 4 values ,the following are my values
- Uk-L1
- Us-L1B
- Aus-BUssness
- Uk-HSMP
and here i need to choose the a particular value as a selected index ,and i did that for a exact value and in my requirement i will pass only the values after that '-' .so that i need get the value to be selected and here am using the following code to select it is not working can any one help for this.
Code:
DropList.SelectedIndex = DropList.Items.IndexOf(DropList.Items.FindByValue("L1"));
Thanks.