How does it work?
As you have learned, scripts in an ASP file are server-side scripts, which means that thescripts are processed on the server and then the result of the scripts will be converted toHTML before sending to the web browser. To illustrate, let’s take a look at this table tocompare the process of retrieving an HTML page and an ASP page (5).HTML processASP process1.
A user requests a web page (i.e.,http://www.utexas.edu/index.htmlin the web browser.2.
The browser finds the appropriateweb server, and asks for therequired page.3.
The web server locates the requiredpage and sends it back to thebrowser as HTML text.4.
The browser executes the client sidescripting (like JavaScripts)determining how to display theresults1.
A user requests a web page (i.e.,http://www.devasp.com/test.aspin the web browser.2.
The browser finds the appropriateweb server (like IIS or PWS), andasks for the required page.3.
The web server locates the requiredpage, and parses out the ASP codewithin the ASP script delimiters(<%…%>), produces a standardHTML page. The server sends thatHTML page back to the browser, sothe user cannot see ASP code.4.
The browser executes the client sidescripting (like JavaScripts)determining how to display theresults
Leave a Comment