ASP.NET: Compress ViewState

前端 未结 8 933
礼貌的吻别
礼貌的吻别 2021-02-06 00:27

What are the latest and greatest ways to compress the ASP.NET ViewState content?

What about the performance of this? Is it worth it to keep the pages quick and minimize

8条回答
  •  再見小時候
    2021-02-06 01:23

    The simple answer might not be what you want to hear. Too often, controls on the page have viewstate by default when they really don't need it. It's a good idea to switch off viewstate until you know you're going to need it, and only switch it on for the (hopefully) few cases where you actually want to keep the view state.

提交回复
热议问题