Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Your First ASP Page

By Amrit Hallan
2004-06-09


ASP wrap up

Provided you've configured your PWS in an amicable manner, this docile file should show up without fuss. You can copy/paste this page as it is using your preferred editor, and save the file as "basic.asp".

As you know, a basic HTML web page begins with the tag, when you begin to work with an ASP page, try to make the first line as:

<%@Language=VBScript%>
<% Option Explicit %>

The first line tells the concerned authorities that the following code is going to contain VBScript syntax.

The second line forces us to declare every variable before we use it. We'll come back to this later when we are in a more aware state of mind.

My preferred script for ASP is VBScript, so most of my ponderings will be in this language. A few daredevils write their ASP pages in Perl too, but personally I feel it is an overkill and they are just trying to either show off or the features they want to use only exist in Perl. For that matter, even C++ is used for making ASP pages.

Anyway, done with the first line, are we?

As you can observe, we have all the quintessential HTML tags in an ASP page too, but they are only necessary if you intend to display the page to your visitors. If the page just includes a script that performs some programming function and then loads some other page, you can simply have the pure ASP code with first line as <% and the last line is %>.

Tutorial Pages:
» Your first ASP page
» A typical ASP page looks like
» ASP wrap up


 | Bookmark
Related Tutorials:
» Decision Making and Looping
» Arrays in ASP
» Emailing Form Data with ASP
» Sending HTML Email with ASP
» Dumping Form Information Onto a Web Page
» Installing Personal Web Server

Ask A Question
characters left.