1. Use Page. ispostback to reduce the number of page replies
2. Avoid using server controls. If server controls are used and some controls do not need to maintain their statuses, you can set their attributes to enableviewstate = false;
If the status view does not need to be maintained for the entire page control, you can set the status vision of the entire page to false:
The Code is as follows: <% @ page enableviewstate = "false" %>
3. If the data access layer contains a large number of String concatenation, use the stringbulider class first.
4. Page Cache Optimization
A. Use Page cache and fragment Cache
<% @ Outputcache duration = "5" varybyparam = "NONE" %>
<% @ Outputcache duration = 60 varybyparam = "textbox1, textbox2" %>
Note: Duration sets the cache expiration time;
Varbyparam is used to set whether the parameter changes. If none is used, all parameters use the same cache,
When textbox1 is set, it is cached based on different textbox1 values. When there are multiple parameters, the cache should be combined;
B. API cache (used by cache objects)
5. Use stored procedures
6. Optimize Query statements
7. Disable debugging mode during deployment
8. In terms of databases, indexes can be created if the data volume is large.
The above is an online excerpt. You are welcome to correct and supplement it. Thank you!