Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以Response.End()是有害的,我该如何刷新响应并终止它?这是正确的方法吗:
resp.Flush(); resp.Close();
对,那是正确的。
实际上,您不需要resp.Flush()-Close()将刷新响应。
resp.Flush()
Close()