KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

How ASP works:

  • A client browser requests an ASP page from the server
  • The server passes the request to ASP.DLL which reads the global.asa file for further instructions
  • ASP includes any files specified by the scripts
  • The scripting engines process the asp scripts and send the feed back to ASP
  • ASP translates the feedback from the scripting engines into HTML code.
  • The interpreted contents are send to the browser as HTML data.

Execution order

ASP will execute the scripts in different order, depending on the language and syntax:
  1. global.asa
  2. server-side includes
  3. Javascript tagged with <script> tags
  4. HTML together with scripts tagged within <% %> delimiters
  5. VBscript tagged within <script> tags

Try the following examples. Although we write "one two three... ten" in order in code, but the script is executed in different order and those number displayed in a different way. Run the following example, you will have better feeling of execution orders.

Example: Order of execution

<HTML>
<head>
<title>testing the order of execution</title>
</head>

<body>
One <%="Two"%> Three
<script runat=server language =vbscript>
Response.Write "Four "
</script>
Five <%="Six"%> Seven
<Script runat=server language =vbscript>
Response.write "Eight "
</script>
Nine <%="Ten"%>
</body>
</html>

Example2: using jscript

This one displays number in a different order from the above VBscript example.

<HTML>
<head>
<title>testing the order of execution</title>
</head>

<body>
One <%="Two "%> Three
<script runat=server language=vbscript>
Response.Write "Four "
</script>
Five <%="Six"%> Seven
<script runat=server language=jscript>
<!--
document.write("Eight ");
//-->
</script>
Nine <%=" Ten"%>
</body>
</html>

ASP tutorial
What is ASP
Install IIS
VBScript or JScript
ClientSide vs ServerSide scripting
ASP execution order
Dealing with Form
More Form example
Variable &Variant
String
Local variable
Global variable
Arrays
Use if_then_else
Use Select Case
For_Next loop
Do_while loop
Subroutine vs Function
Request Object
QueryString
Count Keyword
Using QueryString
Application, Method, Events
Create Virtual Directory
Save array in Application
Session, Method, Events
Using Cookie
Server Object
Ad Rotator
Content Linker
Browser
Dictionary object
Filesystemobject Object

 

 

 

Best books about ASP & ASP.Net from Amazon
Beginning Dynamic Websites : with ASP.NET Web Matrix (Programmer to Programmer) (Paperback) Build Your Own ASP.NET Website Using C# & VB.NET (Build Your Own) (Paperback) Professional Active Server Pages 3.0 (Programmer to Programmer) (Paperback) ASP.NET Cookbook (Paperback) ASP.NET Kick Start (Paperback)

 

Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © kidslovepc.com All rights reserved(new). Privacy|Copyright
designed by info@kidslovepc.com

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer