I'm trying to save some ArrayLists to viewstate
and then use them as DataSources for dropdownboxes.
The code looks like this:
'DptList is a arraylist variable local to this procedure
'...populate DptList
viewstate("Dept01") = DptList
DptList.Clear()
'...populate DptList
viewstate("Dept02") = DptList
DptList.Clear() 'Comment this line and it works
When I try to use viewstate("Dept01") in another procedure
as the datasource it doesn't work. I cast this back to
an arraylist and the count is 0.
If I comment out the second DptList.Clear() it works fine.
I'm stumped.
This is all on the initial load of the page.
TIA
Jim
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!