Created July 12, 2006, Posted August 27, 2016

Response.End is like exit() in PHP

METHOD:  Response.End


The End method orders the web server to stop processing the script. The current results are returned and no further processing occurs. If Response.Buffer is set to True, Response.End will flush the buffer and then end.

Note that in ASP version 2.0, the default for Response.Buffer is set to False, however in ASP version 3.0, the default for Response.Buffer is set to True.

In the example, the second Response.Write will not be displayed in the output.


Response.Write "Hello World" 
Response.Write "Is this the End?" 


Hello World