I recently read an article about how to improve the speed of an aspx page. This is a common interview question. The original text of this question comes from this website.
There are various reasons for this problem. We need to investigate step by step to locate where the problem really occurs.
2. If The SQL statement executes very quickly, so the problem is likely to be with the website itself. At this time, we need to view each Page event one by one to determine which one is executing slowly. There is a tracing tool in ASP.NET. We can use this to see how long each event takes. Set Trace="true" in the page directive, and then you can see the time parameter list of each event at the bottom of the page.