A few days ago, when using Response.Redirect("a.aspx?f=9#12") in the program, I found that in IE, the page after the jump ignored the content after #. Strangely, on the same page, When you redirect yourself, this problem will not exist. I am puzzled by the solution. If you are sick, please seek medical treatment. I searched the Internet and some people said that setting the page Buffer to false may solve this problem, so I set the buffer of page a. False, after verification, this has nothing to do with the above problem, but I was negligent and forgot to modify the buffer. Yesterday, the project was released and placed on the server. The execution time of page A was astonishingly large. The content of the page was slightly larger. The page It often times out, and the execution time of page b that implements the same function is basically 0-16, while the number of database queries for page a is 3, and for page b is 7, which is even more puzzling. After trying it locally, page b is basically There is no difference between it and the server. Page a takes between 90-300ms, and obviously page b needs to display more data and queries more times than page a. In terms of page structure, the two are basically the same because they are used together. They have the same UserControl, only the middle part is slightly different in form. How come there is such a big gap between people under the same roof? I was puzzled, and deleted the page elements one by one, and found that it had no essential effect at all. Page b was surprisingly fast, and page a was as slow as a stroke. So I went to Ya Zhao and basically changed a. When I almost thought it was haunted, I suddenly found that the buffer of page a was set to false, and page b was set to true. It suddenly dawned on me that this was the problem. I corrected it immediately, and good! Page a became faster immediately.
An accident caused such trouble, but I summarized the rules. When the buffer is set to false, the processing time of the page is basically 10-20 times different than when it is set to true. If a page with the same function is found in the future, the speed There is a lot of difference. Excluding data processing and other factors, you should consider whether the above problems exist.