How to set state of controls from viewstate on non PostBack page

Posted by n1zero on Stack Overflow See other posts from Stack Overflow or by n1zero
Published on 2011-02-25T23:18:37Z Indexed on 2011/02/25 23:25 UTC
Read the original article Hit count: 344

Filed under:
|
|

I am currently saving viewstate of pages in cache.

I can see that viewstate is rebinding values and controls on PostBack.

It is working properly on postback.

However, I need to recreate state on a non-post back page.The key i'm using for loading viewstate from cache is being passed in the querystring but I am unable to find a way to force viewstate to load on a non-post back page.

Is there any way to force a load of viewstate on a Non-Postbacked Page?

© Stack Overflow or respective owner

Related posts about c#-4.0

Related posts about viewstate