Last post Aug 24, 2007 08:32 AM by Thomas Sun – MSFT
Aug 21, 2007 01:59 AM|SVI|LINK
What is the difference between HttpContext.Current.ApplicationInstance.CompleteRequest() and Response.End()?
Can using one of these have an performance issue?
Aug 24, 2007 08:32 AM|Thomas Sun – MSFT|LINK
Based on my understanding, you want to know the difference between HttpContext.Current.ApplicationInstance.CompleteRequest method and Response.End method. You also want to know when to use them. If I have misunderstood you, please feel free to let me know.
The Response.End method ends the page execution and shifts the execution to the Application EndRequest event in the application's event pipeline. The line of code that follows Response.End is not executed.
The CompleteRequest method causes ASP.NET to bypass all events and filtering in the HTTP pipeline chain of execution and directly execute the EndRequest event.
For more information, see the following links:
I hope this helps.