I use \'n\' number of server controls in my page. Now I am into performance tuning and I\'ve noticed that my ViewState is too large and it makes my page slow.<
Add the following code to the page which generates large viewstate values. Alternatively, this can be added to master page to eliminate the need of adding on each page. The below code allows the viewstate to be stored in session.
protected override PageStatePersister PageStatePersister
{
get
{
return new SessionPageStatePersister(this);
}
}