How to Improve the Performance of Asp.net pages
An important parameter for improving the performance of Asp.net pages-enableviewstate
As we all know, Asp.net is very easy to develop. One of the main reasons is that, when we develop Asp.net in vs. net, the page status will be automatically saved by default, so developers do not need to think of it as saving the page status.
However, it also has some defects, that is, if the page does not have a control to save the status, it will also save the status by default, and when there are many Web controls on the page, asp.net uses a lot of stuff to save the status, resulting in slow page loading. In this case, you can use the enableviewstate attribute of the page command to control whether the page status is automatically saved.
<% @ Page Language = "C #" codebehind = "index. aspx. cs" autoeventwireup = "false" enableviewstate = "false" inherits = "XXX. XXX. Index" %>