ASP beginner’s tutorial


Introduction to ASP

What is ASP?

Active Server Pages (ASP) is a Microsoft technology that can turn a HTML web page into a dynamic and interactive one. By using scripts, using languages such as VBScript or JScript, web pages can be made to work with databases, output dynamic text and other wonderful things! You need a Microsoft (IIS) server or have Personal Web Server installed on your computer.

Is ASP a client-side or server-side technology?

ASP pages are processed by the server before being delivered to the client. This means that any browser can work with ASP pages regardless of support for scripting languages.

What does an ASP page look like?

An ASP page is, conveniently, indicated by the suffix .asp (e.g. index.asp)

Since the scripts in ASP pages are processed server-side, any browser can work with ASP pages whether it can process scripts or not.

If you look at the source code (the mark-up code) behind an ASP web page being displayed by your browser, you will probably not notice any difference between it and a normal HTML page. This is because the server-processed script results in HTML code!

It is only when you look at the web page on the server that you will notice the difference. You will notice some odd tags that are not HTML. The tags that are used to indicate ASP server-side script are:

<%script goes here%>

There may be a few ASP tags embedded in the HTML or the whole page may comprise ASP script.

The first thing you have to do is let the server know which scripting language you will be using. The first line in your code must be:


Next: trying some ASP

Index: Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6