Domain Registration
    Free Hosting
    Web Hosting
    E-mail Accounts
    FAQs
    Contact Us

    Learn ASP
    Databases
    Articles
    Terms of Service
    Home

ASP is Microsoft's OLE / ActiveX scripting environment.  It allows programs or scripts to be ran from within HTML documents on the server, and the program code is replaced with the resulting HTML code.  ASP is not an actual scripting language, just an environment that allows you to choose and use a scripting language.  At the moment, only two languages can be used:  VBScript, a toned down version of Visual Basic; and JScript, a Microsoft version of JavaScript (which, I add, is not compatible with JavaScript used by other browsers).

When you put scripts inside HTML documents you must enclose them with a <% to start and a %> to end the scripted part of the document.  All text outside of these delimiters (a symbol used to mark a starting and stopping point) is just like a regular HTML document, just plain text with funny looking names in <>s.

Commands and statements in the script are usually ran in the order they appear in the file, but there are commands that can change this.

Here is a sample of an HTML document with ASP script in it.

<HTML><HEAD><TITLE>FooBar</TITLE></HEAD>
<
BODY bgcolor=White text=Black>
<
P>Here is my script:</P>
<%Response.Write(Server.HTMLEncode("Script this boy..."))
For i = 0 To 10%>
Current Number is <%=Server.HTMLEncode(i)%>
<%
Next%>
</
BODY></HTML>

By: Matthew Holder