Link to home
Start Free TrialLog in
Avatar of 23-degrees
23-degreesFlag for United States of America

asked on

ASP.NET Master Page View State Persistance Issue

I'm trying to use PageStatePersister solution (found at http://msdn.microsoft.com/en-us/library/aa479403.aspx) in order to decrease the size of page View State. I've added the code lines attached to this question on code behind of every page but it did not decreased the size of View State on any page. Where as on one of my other similar application this worked fine.

The only issue i can clue about is that the pages are specified with a Master page file and i'm unable to override the PageStatePersister for Master Page (the error comes with description like 'no suitable method found to override').

Please let me know how can i decrease Page View State size of an .aspx page which has a Master Page specified.

Regards.
protected override PageStatePersister PageStatePersister
{
    get { return new SessionPageStatePersister(this); }
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of xav056
xav056

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 23-degrees

ASKER

Thanks