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
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