CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>

Typical ASP Pages, Server Scripting Table of Contents PrintView CL1
<Previous> What is ASP? Where Can I Get The Software?

Databases and ASP <Next>

The "Charles Explains..." column
write charlescarroll@learnasp.com with feedback

A Typical ASP Page and the fundamental mechanisms of Server Side scripting


       

Now let us go over the essential mechanisms that are ASP:

  1. A user asks for a page say:
    http://www.coyoteindustries.com/hi.asp

  2. 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

<<<<<<<

Typical ASP Pages, Server Scripting Table of Contents PrintView
<Previous> What is ASP? Where Can I Get The Software?

Databases and ASP <Next>

CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>