Learning ASP Series -- Your First ASP Page
ASP pages (Active Server Pages page sounds a bit ... butits easier to refer to them like this) are nothing but web ... ... is that they have an ... .ASP and you writethe co
ASP pages (Active Server Pages page sounds a bit melodramatic but
A Server Side Script, on the other hand, does not manifest itself
when you try to use the "View Source" option of your browser. It
is a server side matter so unless you have the actual access to
the server, you cannot view the portion containing the server
side coding. But yes, the rest of the HTML matter is visible.
A typical ASP page looks like:
==> Page Begins <==
<% Option Explicit %>
SayThis = "Finally, I'm learning ASP!"
==> Page Ends <==
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
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
<% 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
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 %>.
==> End of Chapter Two <==
Note to the Reader: If you found this chapter useful, please let
me know at mailto:firstname.lastname@example.org.
Source: Free Articles from ArticlesFactory.com
ABOUT THE AUTHOR
Amrit Hallan is a freelance web designer. For all web site
development and web promotion needs, you can get in touch with
him at http://www.bytesworth.com. For more such articles,
visit http://www.bytesworth.com/articles and