Reputation: 2341
I have read that you can do it, but would this really improve performance of the page, or would it bring more performance overhead?
Upvotes: 2
Views: 276
Reputation: 278
Viewstate data is information about the page that is encrypted and serialized into a hidden tag on the page.
If you could store it in the session these are some of the problems/pitfalls:
If you could store it in SQL Server these would be some of the problems:
Upvotes: 3
Reputation: 8421
Here's a good article by Scott Hanselman about storing ViewState information in the Session object:
Moving ViewState to the Session Object and more Wrongheadedness
Upvotes: 6