No, the ASP script never makes it to the browser. It is a program that runs on the server. It produces output, a stream of data that is HTML code. That HTML code is what goes to the browser.
So if you are looking to see the script that generated a page you must have access to the web server such as an FTP connection.
If you wish to present the ASP script as a web page, as an HTML page then you must prepare it as content.
This could be done in a static HTML page with a .html extension. In a file named, display_asp_code.html
Code:
<html>
<body>
Here is the ASP script<br>
<% Response.Write "Hello George." %>
</body>
</html>
This may or may not have the expected result; in Mozilla it displays as is; in IE6, the portion inside the ASP delimiters is not displayed.
The essential problem is how to display the ASP tags?
This can be done in an ASP script using Server.HTMLEncode(). In an ASP script named display_asp_code.asp
Code:
<html>
<body>
Here is the ASP script<br>
<%= Server.HTMLEncode("<% Response.Write ""Hello George."" %\>") %>
</body>
</html>
And it is necessary to use special notation for the quotation marks inside the string which is being encoded; and to escape the final bracket in the ASP delimiter in the code which is displayed.