Practical 6
Practical 6
: 6
Introduction of ASP
Example:
<html>
<body>
<%
response.write("My first ASP script!")
%>
</body>
</html>
ASP is browser independent because all the scripting code runs on the
server and the browser only gets a normal HTML page as a result of server
side scripting.
33
How does it work?
When a browser requests an HTML file, the server returns the file
When a browser requests an ASP file, IIS/ PWS passes the request to
the ASP engine
The ASP engine reads the ASP file, line by line, and executes the
scripts in the file
Finally, the ASP file is returned to the browser as plain HTML
34