"Bartosz Krzywicki" <Ba**************@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
I have a problem with the following error:
"Server Error in '/sir' Application.
--------------------------------------------------------------------------------
The viewstate is invalid for this page and might be corrupted.
"
Page properties are: EnableViewState="True" EnableViewStateMac="False"
I don't have a Web Farm.
I want to keep DataSet in ViewState, so in Page_Load i load some data and save them in the ViewState.
But when I push some button, error occurs in OnInit method in line "base.OnInit(e);"
How can I solve this problem ?
What exactly do you do? Just a page that posts back to itself, or are there
server.executes, server.transfers or http-handlers involved?
You did set EnableViewStateMac to false, which is the solution
for some of these problems, but apparently not for you.
Why do you want to keep a dataset in viewstate? This will mean that that
entire dataset is transported from the server to the client,
and again from client to server! How big is it?
There are several possibilities to store it server-side (session, cache).
Hans Kesting