Examples of ASP script.
***************
Here is the code for the display on the left.

The apostrophe ' represents a comment that is not part of the code.

<% For i = 0 To 3 ' This is a For Loop which as you can see repeats itself. response.write("The number is " & i & " <hr style='border:2px dotted red;width:25%;text-align:left;align:left;margin-left:0' /> <br />") Next Dim cars(2) cars(0)="Chevy" cars(1)="Buick" cars(2)="Cadillac" For Each x In cars ' A For Each...Next loop repeats a block of code for each item in a collection, or for each element of an array. response.write(x & "<br>") Next ' Don't need an End Keyword to end the loop's processing response.write("<p> </p>") i=0 Do While i < 3 response.write("This will write the same 3 lines according to Do While Loop fuctionality <br />") i=i+1 Loop %> The Application Object is used to determine the number of hits.

The number is 0

The number is 1

The number is 2

The number is 3

Chevy
Buick
Cadillac

 

This will write the same 3 lines according to Do While Loop fuctionality.
This will write the same 3 lines according to Do While Loop fuctionality.
This will write the same 3 lines according to Do While Loop fuctionality.

Page Current Hits: 1 which is the number of current users' calls.