Completely remove ViewState for specific pages

后端 未结 8 1140
终归单人心
终归单人心 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 16:59

    in .net4 you can just remove the runat="server" from the form tag. But you can't use server controls inside the form tag once you remove it.

提交回复
热议问题