I want to keep viewstate of a specific page in session but following code block does not help me, what might I be missing?
So here is the code-behind file content of
What you might be seeing in the ViewState hidden field is the ControlState which is stored differently from the "normal" ViewState.
To also store the ControlState in session, add the following entry to the web.config file:
RequiresControlStateInSession=true
Check this page for more.