ViewState to Session and ControlState compressed

B

bill

Hi folks,
we have a scenario whereby we're not too worried about cpu cycles on
the server, and much more worried about users with slow up-stream
connections to the server. Our goal is to...

1) Keep ViewState on.
2) Put ViewState in Session.
3) Compress the control state that gets sent to browser even when view
state is in session (since control state is always sent to the
browser).

1 & 2 are fine -- we've overridden PageStatePersister and are
returning SessionPageStatePersister. That was a great savings. But
we use some 3rd party controls that write quite a lot to control
state, which of course is being sent down to the VIEWSTATE field. The
downstream is not such a big deal, but when postbacks occur, of course
the big VIEWSTATE field is being sent up-stream as well in the forms
collection.

So we would love to keep using Session as the main location for view
state (i.e., keep using SessionPageStatePersister), BUT also compress
the viewstate/controlstate. Is this possible without writing our own
Session persister? Is there anywhere we could hook-in to the existing
SessionPageStatePersister (by inheriting it and using its base
functionaltiy for example) and compress the stuff before it gets
psersisted?

Many thanks,
Bill
 
N

news.microsoft.com

bill a écrit :
Hi folks,
we have a scenario whereby we're not too worried about cpu cycles on
the server, and much more worried about users with slow up-stream
connections to the server. Our goal is to...

1) Keep ViewState on.
2) Put ViewState in Session.
3) Compress the control state that gets sent to browser even when view
state is in session (since control state is always sent to the
browser).

1 & 2 are fine -- we've overridden PageStatePersister and are
returning SessionPageStatePersister. That was a great savings. But
we use some 3rd party controls that write quite a lot to control
state, which of course is being sent down to the VIEWSTATE field. The
downstream is not such a big deal, but when postbacks occur, of course
the big VIEWSTATE field is being sent up-stream as well in the forms
collection.

So we would love to keep using Session as the main location for view
state (i.e., keep using SessionPageStatePersister), BUT also compress
the viewstate/controlstate. Is this possible without writing our own
Session persister? Is there anywhere we could hook-in to the existing
SessionPageStatePersister (by inheriting it and using its base
functionaltiy for example) and compress the stuff before it gets
psersisted?

Many thanks,
Bill


Hi Bill,

I had the same issue recently and found usefull information here :
http://www.codeproject.com/KB/viewstate/ViewStateCompression.aspx

This really worked in my case, saving precious bandwith for customers.
I suppose this would work fine with your method since controlstate is
stored inside viewstate.

Hope this helps.

Vianney
 

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

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top