Last post Jul 11, 2014 03:09 PM by markfitzme
Jul 11, 2014 09:29 AM|Renuka V|LINK
Losing the viewsate values on the pageinit and pageload
How to I get the set of values even after pageinit.
please give me some ideas.
Is there is any possible ways to have those datas ??
Jul 11, 2014 09:32 AM|AidyF|LINK
ViewState is only kept when doing a postback.
Jul 11, 2014 09:38 AM|Renuka V|LINK
Then please tell me some way to have the datas after the pageinit event too.
Is it possible.
Jul 11, 2014 03:09 PM|markfitzme|LINK
During the OnInit event is too early. ViewState isn't loaded until after the OnInit is complete. It should be ready by the OnLoad event, but again any changes made only persist if the page is posted back.
If you aren't doing postbacks, you have to use other means such as querystring, cookies, session, etc. and treat it as if you are passing data to a seperate page.