Strategies for reducing ViewState size in asp.net

后端 未结 6 1606
星月不相逢
星月不相逢 2021-01-12 18:17

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.<

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 18:46

    Exactly the issue that I had. I had to extend the HiddenFieldPageStatePersister and save the viewstate in a database. I have written an entire article that will guide you.

    http://ashishnangla.com/2011/07/21/reducing-size-of-viewstate-in-asp-net-webforms-by-writing-a-custom-viewstate-provider-pagestatepersister-part-12/

提交回复
热议问题