|
Now let us go over the essential mechanisms that
are ASP:
-
- The Web Server find the file and then
processes all the ASP code between <%
... %> before handing back the
page. Code between <%
... %> never arrives at the browser.
<html><head>
<TITLE>hi.asp</TITLE>
</head>
<body bgcolor="#FFFFFF">
Today is <%=now%> and all is well<br>
<%if hour(now())>12 THEN%>
Good Evening
<%ELSE%>
Good Morning!
<%END IF%>
</body></html> |
The webserver file
<<<<<<<
|
|
ASP
compiler grabs page
Interprets all the <% %> markers
before browser sees page! |
<html><head>
<TITLE>hi.asp</TITLE>
</head>
<body bgcolor="#FFFFFF">
Today is Tue 10:30am and all is well<br>
Good Morning
</body></html> |
Before 12pm
the user at the browser receives
<<<<<<< |
|
|
<html><head>
<TITLE>hi.asp</TITLE>
</head>
<body bgcolor="#FFFFFF">
Today is Tue 02:00pm and all is well<br>
Good Day!
</body></html> |
After 12pm
the user at the browser receives
<<<<<<< |
|