Codefixer - ASP tutorials, resources and software
New MS SQL 2008 Available – DiscountASP.NET
Home   Articles   Resources   ASP directory   ASP Tutorials   Code Snippets   ASP Applications   Forum
Monday 6 October
MembersPro PayPal - ASP Membership software

USA & Europe Data Centers – DiscountASP.NET


ASP Partner ASP Partner ASP Partner more partners...

Where do I save my ASP files?

When you create an ASP page, you cannot view it by simply clicking on it or clicking file open on your browser and locating the file. Although this works for a HTML file this will not give the server the chance to parse any of the code in your ASP page.

IIS or PWS on installation creates a folder on your hard drive that is by default called Inetpub. Under Inetpub there is another folder called wwwroot. The wwwroot folder is the root folder for your website. You can place your site (your folders and files) in here giving your web server access. By default the folders are placed on your C drive, C:\Inetpub\wwwroot. Save your files and folders here.

Have a look at the page below. I created a folder called 'mysite' and placed it within the wwwroot folder (ie C:\inetpub\wwwroot\mysite). Next I created and placed a file in that folder called default.asp. I wrote the file with all the ASP and HTML, then went to my address bar and typed in http://localhost/mysite/default.ASP and hey presto! Example 1 shows the results.

Example 1

Saving ASP files

The code for this example is;

<%@ Language="VBScript" %>
<html>
<head>
<title>hello page</title>
</head>
<body>

<%
response.write "hello, notice the url above http://localhost/mysite/default.asp"
%>

</body>
</html>

Remember that your PWS or IIS must be running and installed properly for this example to work.

Related Tutorial 'ASP needs a Server'
Related Tutorial 'Installing ASP on your own computer '

LinksPro - Directory  and Link  Management Software




ASP.NET 3.5/2.0 Web Hosting: 3 Months FREE – Click Here!




About | Contact | Advertise | Feedback | Hire Us | Link

Site developed by Michael Wall - Web Design Belfast N.Ireland.
Copyright © 2000-2008. All rights reserved.

Do you intend to move to ASP.NET or have you already?
Yes will do
Have done
ASP does fine
Not a priority


Directory Software