Hi,
Yes, you can change the default behavior by overriding
SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium.
here a sample that preserve viewstate into session data collection :
protected override void SavePageStateToPersistenceMedium(
object viewState)
{
Session["VS"] = viewState;
}
protected override object LoadPageStateFromPersistenceMedium()
{
return Session["VS"];
}
Just keep in mind that such a solution reduce network traffic but demand
to save ViewState data in centralize place to support load balancing
scenarios.
HTH
Natty Gur[MVP]
blog :
http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!