![]() |
|
|
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 ![]() The code for this example is; <%@ Language="VBScript" %> Remember that your PWS or IIS must be running and installed properly for this example to work. Related Tutorial 'ASP needs
a Server'
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|