Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

ViewState to Session and ControlState compressed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bill - 07 Dec 2007 10:51 GMT
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
news.microsoft.com - 07 Dec 2007 18:12 GMT
bill a écrit :
> Hi folks,
> we have a scenario whereby we're not too worried about cpu cycles on
[quoted text clipped - 25 lines]
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.