4
Answers

Page fails to load when arraylist being saved in Viewstate

Ask a question
deepa

deepa

15y
4.9k
1
Hi,
I'm facing problem when i load page with dynamically created controls. This happens if i save a arraylist in viewstate.
ViewState["Delim"] = arrList;
I searched the net, and found that we can save arraylists in viewstate, and that try saving it in page_preRender. I did so, but same issue. If i save some string in viewstate instead, it doesn't have any problems loading the dynamic controls.

Anyone can help me here, to resolve this?



Thanks,
Deepa

Answers (4)