Completely remove ViewState for specific pages

后端 未结 8 1098
终归单人心
终归单人心 2020-12-06 16:14

I have a site that features some pages which do not require any post-back functionality. They simply display static HTML and don\'t even have any associated code. H

8条回答
  •  既然无缘
    2020-12-06 17:18

    In the <% @page... directive at the top of the page, add EnableViewState="False". That will prevent the ViewState for that particular page.

提交回复
热议问题