Response.End stops further execution of the current ASP page. Any code after it is not executed. Use it deliberately, because cleanup or output logic placed later in the page will also be skipped.
<%@ Language=VBScript %>
<% Option Explicit
Response.Buffer = false %>
<html><head>
<title>(Type a title for your page here)</title>
</head>
<body >
<%
Response.Write("Message No :1 Before Flush <br>")
Response.Write("Message No :2 After Flush <br>")
Response.End
Response.Write("Message No :3 After End, This line will not be executed <br>")
%>
</body>
</html>
You can see the message no 1 and message no 2 only. After this script execution will be stopped and the outputs will be posted to browser so Message No 3 will not reach the browser
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.