Web Development

ASP Tutorials

If you want to work with ASP (Active Server Pages) on your personal computer, you need to install the Personal Web Server (PWS). As the name indicates, it’s a server. Unlike the normal HTML pages, dynamic pages (either created with CGI, PHP, ASP or Cold Fusion) require some sort of a server to carry on their business.

ASP pages (Active Server Pages page sounds a bit melodramatic but its easier to refer to them like this) are nothing but web pages. The difference is that they have an extension .ASP and you write the code in a Server Side Scripting language.

I know some people don’t like VBScript for being Microsoft-Centric, but it’s very easy to get familiar with, and once you know how to create your ASP pages in VBScript, you can move on to any programming language of your choice.

A problem I have is that I have a lot of code doing the same thing. Recently, on a project I was doing, the URL’s had to be encoded to make them more friendly. It looked something like this…

This tutorial will show you how to build a simple hit counter. It does not use any sql or databases and stores the hits in a text file. All you need to create for this script is your asp file and a text file. In the text file, simply enter the number 0 and save it in the same directory as count.txt. Take a look at the basic source code.