views:

41

answers:

1

Is it a good idea to persist all ViewStates of the Intranet in a Memcached or directly in file on the server like this article show?

I usually see it directly in pages but a lot of our pages (Intranet website for clients) have huge DataGrid (can make the page up to 2 megs).

Is it a good way to have smaller page? Any problem that you can see?

+1  A: 

This is the ideal way I've found is to use the PageStatePersister:

http://www.4guysfromrolla.com/articles/011707-1.aspx

The only thing to consider is history size. I've gone with 20 and never have performance issues.

Nissan Fan
Well you are the only one that seem to do it :p I'll accept but not sure if I will do it.
Daok
It's a good solution and will give you a smaller page especially when you have a datagrid or other complex control tucking itself into the viewstate. It won't be a problem at all because this is actually part of core 2.0 on. Just make sure you use the History size to deal with back button issues.
Nissan Fan