DropDownList SelectedIndex value is not working for the last item.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top