473,387 Members | 1,603 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,387 software developers and data experts.

removing viewstate from serialized state in page?

I heard somewhere that in at least ASP.NET 2.0 you can remove the serialized
view state from a page and have it stored locally in SQL server ot the
ASP.NET state server service? so it doesnt transfer all that view state
information with each page (which sometimes is HUGE)... anyone have any
documents on this or tutorials? thanks!
Dec 30 '06 #1
2 1633
The Page object exposes two function, SavePageStateToPersistenceMedium and
LoadPageStateFromPersistenceMedium which are meant to let you override the
default behaviour. There are a bunch of examples online, for example
http://www.codeproject.com/aspnet/ViewStateProvider.asp which creates an
entire provider model for greatest flexibility.

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"Smokey Grindel" <no****@nospam.comwrote in message
news:OQ**************@TK2MSFTNGP02.phx.gbl...
>I heard somewhere that in at least ASP.NET 2.0 you can remove the
serialized view state from a page and have it stored locally in SQL server
ot the ASP.NET state server service? so it doesnt transfer all that view
state information with each page (which sometimes is HUGE)... anyone have
any documents on this or tutorials? thanks!
Dec 30 '06 #2
awesome, thanks a lot!

"Karl Seguin" <ka********@removeopenmymindremovemetoo.andmenetwr ote in
message news:eY*************@TK2MSFTNGP06.phx.gbl...
The Page object exposes two function, SavePageStateToPersistenceMedium
and LoadPageStateFromPersistenceMedium which are meant to let you override
the default behaviour. There are a bunch of examples online, for example
http://www.codeproject.com/aspnet/ViewStateProvider.asp which creates an
entire provider model for greatest flexibility.

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
"Smokey Grindel" <no****@nospam.comwrote in message
news:OQ**************@TK2MSFTNGP02.phx.gbl...
>>I heard somewhere that in at least ASP.NET 2.0 you can remove the
serialized view state from a page and have it stored locally in SQL server
ot the ASP.NET state server service? so it doesnt transfer all that view
state information with each page (which sometimes is HUGE)... anyone have
any documents on this or tutorials? thanks!

Dec 30 '06 #3

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

Similar topics

6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
5
by: Craig Buchanan | last post by:
I'm using a viewstate key/value to store a serialized instance of a class. If I redirect to another aspx page, the viewstate is lost. Is this the intended behavior of the viewstate? Is there a...
4
by: dm_dal | last post by:
Is there a know issue surrounding the CheckBoxList control and it's viewstate? When my control is created, it's ListItems are checked as needed, but on a postback, they loose their Selected...
2
by: ce | last post by:
Being a newbie regarding serialization and memorystreams, I was trying to see if i could improve page performance (avoiding going to the db on a postback) by saving my serialized business object in...
9
by: Mark Broadbent | last post by:
Been a while since I've touched asp.net but one thing that always seems to fustrate me is the loss of state on variable declarations. Is there anyway (i.e. assigning an attribute etc) to instruct...
10
by: Steve Richter | last post by:
I have some potentially large objects I would like to store in the viewstate of a user control. Large as in an entire email message. Is ViewState not the sort of place to store such an object? I...
7
by: GS | last post by:
Hello, I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening? My...
0
by: madani | last post by:
Hi, I need to get serialized string of Page ViewState in Constructor of my custom web control. I can not override SavePageStateToPersistenceMedium Method of page object because I'm in different...
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
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.