SavePageStateToPersistenceMedium still sends viewstate variable to client

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"];
}
 
G

Guenther Liebowitz

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top