DropDownList SelectedIndex value is not working for the last item.

  • Thread starter Thread starter Bryan Poteet
  • Start date Start date
B

Bryan Poteet

Hello,

Here is the problem. I have a dropdownlist control on my page and it holds 4
items.

EnableViewState=True and AutoPostBack=False.

When I click the submit button I want to get the Selected Value and Text
from the control.
Here Are the Results

Values in the control
Index - Value
0 - Item1
1 - Item2
2 - Item3
3 - Item4

Selected Item -> What the property says on PostBack
0 - Item1 -> 0 - Item1
1 - Item2 -> 1 - Item2
2 - Item3 -> 2 - Item3
3 - Item4 -> 1 - Item2

What am I overlooking??

Thanks
Bryan
 
You must be overwriting the last value somewhere. Check your code for this.
This is rather strange.
 
Back
Top