R
Robin Bonin
In my user contol I am creating a set of dropdownlists.
Each list is created based on input from the other lists.
The problem I am having is setting the selected index on
the lists.
If someone changes box1, I want to set the selected index in
box2 = 0. When I do this, I dont get an error, but when the
page loads, it still has the selected value and not 0.
It seems that it is getting the selected value from the viewstate
and applying it after I set the index equal to zero. I'm setting
the index in a sub called by page.load.
I thought that at page.load the viewstate was loaded?
I tried to disable the viewstate on the drop down, but I have
not had any luck.
Any ideas?
Thanks
Each list is created based on input from the other lists.
The problem I am having is setting the selected index on
the lists.
If someone changes box1, I want to set the selected index in
box2 = 0. When I do this, I dont get an error, but when the
page loads, it still has the selected value and not 0.
It seems that it is getting the selected value from the viewstate
and applying it after I set the index equal to zero. I'm setting
the index in a sub called by page.load.
I thought that at page.load the viewstate was loaded?
I tried to disable the viewstate on the drop down, but I have
not had any luck.
Any ideas?
Thanks