Wednesday, February 14, 2007

Running an ASP Web Page

If you do not know where to save and run your ASP web pages from, this lesson will guide you through the process. In the previous lesson we installed Microsoft's Server software (IIS or PWS) to enable your computer to run .asp files. However, having IIS or PWS installed is not enough to run ASP files. The next step you must complete is to save and run your ASP files from a special location on your hard drive: the Inetpub directory to be specific.

Follow these steps to navigate to this directory:

Open up "My Computer" or "Windows Explorer" so that you can view your system's files and directories.

Select and Open the C drive (C:)

Double click the Inetpub folder

Double click the wwwroot folder - The full path to this location is "C:\Inetpub\wwwroot" for you advanced users

Within the wwwroot directory locate the "localstart.asp" file.

This is the same file you saw after completing the installation in the previous lesson. Your ASP files will have to go into this wwwroot directory or a contained sub-directory to run properly.

Tizag's Setup

This tutorial was written on XP Professional, but any of you using Windows 98 or other Windows derivatives should have no problem following along. If you do encounter a specific problem, please feel free to Contact Us.

Installing ASP and IIS on Windows XP Professional

First locate your XP Professional CD and put it into your CD-ROM then follow these steps:
Open your control panel. Click Start -> then Settings -> then Control Panel
Select and Open "Add or Remove Programs"
On the left column of the popup window select "Add or Remove Windows Components"
Scroll down until you see Internet Information Services (IIS)
If IIS is not checked then check it, otherwise you already have IIS installed on your computer
Click Next and follow the on screen instructions from the installer
When it has completed, open up Internet Explorer and type in http://localhost
If IIS was install appropriately you should be taken to the welcome screen http://localhost/localstart.asp