![]() |
|
|
Write 'Hello World' with your First ASP ScriptFirst lets use a text editor such as Notepad to write this script. Go to Start > Programs > Accessories > Notepad and copy the code in blue and the comments in green and paste them into notepad. Remember that anything after the ' is commented out and thus not processed. <%@ Language="VBscript" %> To test this script on your own computer you should remember than when you installed PWS or IIS an 'Inetpub' folder should have been created on your harddrive with the sub folder 'wwwroot'. Locate this folder ie 'wwwroot' and inside it create a new folder called 'ASP'. Save the file as Helloworld.asp in your C:\inetpub\wwwroot\ASP folder (you may need to change the drive letter if Inetpub is not on your C drive). Next open your browser and type http://localhost/asp/helloworld.asp in the address/url box and hit enter. You should see the output below provided you have PWS or IIS installed correctly. ![]() If you are not running the script on your own local computer but on your hosting company's web space then just simply save the file, upload and run the script. Related Tutorial 'Looping' (The For Next loop explained in more detail)
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|