SavePageStateToPersistenceMedium still sends viewstate variable to client

  • Thread starter Thread starter JCardinal
  • Start date Start date
J

JCardinal

I am saving the viewstate at the server for pocket pc clients to get around
the old Invalid Viewstate error.

This works perfectly, however when I look at the html source of the page
served up to the client, it still contains the hidden viewstate variable and
data.
It's not being used and it's eating up wireless network data usage charges
as well as slowing down the page load time unnecessarily.

How do I stop that variable from being sent while still maintaining
viewstate at the server?

Here are the functions I use to save viewstate and load it at the server
(c#):

protected override void SavePageStateToPersistenceMedium( object viewState )
{
base.SavePageStateToPersistenceMedium( viewState );
Session["VIEWSTATE"] = viewState;
}

protected override object LoadPageStateFromPersistenceMedium()
{
return Session["VIEWSTATE"];
}
 
It's not being used and it's eating up wireless network data usage charges
as well as slowing down the page load time unnecessarily.


maybe you should contact the wireless network host and ask for a commission!
 
Back
Top