PageStatePersister Extensibility with ASP.NET 2.0

One of the new extensibility features in ASP.NET 2.0 is the ability to override and customize how page viewstate is stored and persisted.  With ASP.NET V1.x, viewstate is always stored in a hidden field within the ASP.NET page, and doesn't expose an easy way to place it elsewhere.  With ASP.NET V2.0 you can optionally choose to store it anywhere.  A built-in SessionPageStatePersister is even included built-in to the product if you want to store it on the server in session state.

Milan Negovan has a good post that talks a little more about the extensibility opportunities to use this on his blog here, as well as some of the pros/cons of the different options.

Hope this helps,

Scott

 

Published Sunday, June 18, 2006 10:15 PM by ScottGu
Filed under:

Comments

# re: PageStatePersister Extensibility with ASP.NET 2.0

Monday, June 19, 2006 6:06 AM by Christoph Richter
the PageStatePersister is definitly an improvement. what i implemented in there is an complete history object, where you can move your whole history back and foreward. its done, since there is no real history navigation on mobile clients. this class can also navigate with postback status (e.g. paging) and also triggers events. but there are others, where i miss that easy customizeability. Like with the IdSeperator...

# re: PageStatePersister Extensibility with ASP.NET 2.0

Monday, June 19, 2006 1:02 PM by Dave Reed
Of all the pros and cons that different storage strategies offer, reducing the amount of viewstate you are storing is always a "pro". But before you can reduce it, it helps if you understand exactly how it works, since you may be bloating it without realizing it. I've found that to be a very common problem, so I wrote this rather lengthy article explaining it. Forgive my shameless plug :)

"Truly Understanding Viewstate"
http://infinitiesloop.blogspot.com/2006/03/truly-understanding-viewstate.html

# re: PageStatePersister Extensibility with ASP.NET 2.0

Tuesday, June 20, 2006 3:05 AM by paketim
We are using viewstate compression in our projects. The amount of viewstate is reduced by nearly 50%.

The article "Truly Understanding Viewstate"  is very useful for discovering other ways of reducing the viewstate size.

Paketim
http://www.paketim.com

# Link Listing - July 9, 2006

Sunday, July 09, 2006 11:54 PM by Christopher Steen

A slider client control for Atlas [Via: bleroy ] ADO.NET and SQL Server Everywhere [Via: alexbarn...

# 开源项目大家谈-网站性能调校-Page State Persistence

Wednesday, November 19, 2008 5:12 AM by m2land

在DNN开源项目里,有一些设置可以调校网站的性能,包括以下这几个:我会花几篇文章逐个讨论一下这几个选项对网站性能的影响,并给出一些技术分析。什么是PageSatePersistence我想...