473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ViewState to Session and ControlState compressed

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
Dec 7 '07 #1
1 3301
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/viewst...mpression.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
Dec 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yahoo | last post by:
Dynamic controls dont remember their viewstate if not added during onInit. I was wondering dynamic controls cannot be added during 'void LoadViewState(object savedState)'? If child controls were...
12
by: Alan Silver | last post by:
Hello, I have a page that gets passed an ID in the query string. It then uses this ID to pull info out of a database and populate controls on the page. When the page is posted back, the query...
1
by: John | last post by:
I'm having problems controlling viewstate size in ASP.NET 2.0. I have a repeater, which contains a gridview, which contains another gridview. All this is databound to produce a 100page report...
6
by: Peter Zolja | last post by:
Hi, I'm building a webcontrol that contains a dynamic list of other controls. My problem is that when I add or remove an item the synchronization between the ViewState and the Controls...
4
by: Rolf Welskes | last post by:
Hello, the problem seems simple I have an own webcontrol one property is public bool IsEdit { get
5
by: Mark Olbert | last post by:
Tonight's episode of me beating my head bloody against the monitor was the result of ViewState/ControlState information not being available when CreateChildControls() gets called for a...
12
by: Nick C | last post by:
Hi How can i reduce the viewstate for my asp.net application. It is getting very large now. What is a good solution? thanks N
5
by: John Kotuby | last post by:
Hi all, After more than a year programming with ASP.NET 2.0 and VB I am still finding it difficult to leave some habits from classic ASP behind. this is particularly true with cross-page posting....
2
by: Edward | last post by:
I am reading MSDN doc about Control's ViewState and ControlState. I got myself quite puzzled. I see that the Control class has four virtual functions: LoadControlState LoadViewState...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.