Here's the scenario. I have page with a dropdownlist on it. In the save button's click event, I am retrieving the value like this:
VB Code:
strDesig = Me.listDesignation.Items(Me.listDesignation.SelectedIndex).Value
Now this works.
However, when I set the EnableViewState property of the page to false, the code errors out at the above line, showing me that .SelectedIndex is -1.
This is despite the control's EnableViewState property being set to True.
Any clues?




Reply With Quote