Wednesday, February 14, 2007

ASP Syntax

If you have any experience with PHP, Javascript, or general programming then ASP's syntax will make some sense to you. However, if you only have experience with web technologies like HTML and CSS, then ASP will be more of a challenge.

Your First ASP Script

Before we get into the meat and potatoes of ASP programming let's just run a very simple ASP script to check that your IIS installation and ASP are working properly. Open up a text editor and type the following ASP Code and save the file as "firstscript.asp".

firstscript .asp ASP Code :< %
Respon se.Write( "Hello Me")
%>
Be sure to save this file to the directory "tizagASP" as was mentioned in the previous lesson, Running ASP.
Launch Internet Explorer and type the following into the address bar:
http://localhost/tizagASP/firstscript.asp
If you see the following...
Internet Explorer Display:
Hello Me
...then you've got all the file saving and running mumbo jumbo figured out and you can start focusing on learning ASP! Now let's continue!

Creating ASP Testing Grounds

Throughout this tutorial we will be referring to the folder "tizagASP" that you should create if you want to follow along with these ASP Tutorials.
Inside the wwwroot folder create a New Folder and rename it "tizagASP"
To access this directory you would type the following into Internet Explorer:
http://localhost/tizagASP/FILENAME.asp
Where FILENAME is name of your ASP file
All of the files you create while reading the ASP Tutorial should go into this directory.