Learning ASP Series -- Your First ASP Page

Written by Amrit Hallan


ASP pages (Active Server Pages page sounds a bit melodramatic but its easier to refer to them like this) are nothing but web pages. The difference is that they have an extension .ASP and you writerepparttar code in a Server Side Scripting language.

Do we know what's Server Side Scripting? This doesn't actually matter if we delve into such nitty-gritty, but let's sound a bit philosophically intellectual. Now, there are two sorts of scripting languages:

Server Side (the hosting server where allrepparttar 131919 pages and programs reside)

Client Side (the web surfer usingrepparttar 131920 browser - actuallyrepparttar 131921 browser isrepparttar 131922 client)

No, we are not talking about some corporate politics with all this "siding" talk. Ok, before I begin with my bad sense of humor, "Client Side Scripting" is what we generally see when we code basic Java Scripts in our web pages to validate HTML forms or implementing those cool image rollover effects or opening custom popup windows etc. When you viewrepparttar 131923 source of an HTML page, and ifrepparttar 131924 Java Script has been written inrepparttar 131925 page itself (they have external Java Scripts too, but then that's a different story), then you can seerepparttar 131926 script with all it's gory details. A simple example of a Client Side Script written in Java Script is:

And then you can use it whenrepparttar 131928 page loads:

A Server Side Script, onrepparttar 131929 other hand, does not manifest itself when you try to userepparttar 131930 "View Source" option of your browser. It is a server side matter so unless you haverepparttar 131931 actual access torepparttar 131932 server, you cannot viewrepparttar 131933 portion containingrepparttar 131934 server side coding. But yes,repparttar 131935 rest ofrepparttar 131936 HTML matter is visible.

A typical ASP page looks like:

Learning ASP Series - Installing Personal Web Server

Written by Amrit Hallan


Welcome torepparttar first chapter of your Basic ASP Learning Series.

I mostly communicate on a personal level, so it's better we acquaint ourselves inrepparttar 131917 beginning. My name is Amrit Hallan and I'm a web developer. I work through my web site - http://www.bytesworth.com. I'm not a nerd (and don't want to be) and most of my knowledge has come to me piecemeal through lots of hard work and interaction with my other developer friends. I don' t think it'd be fair to say that I'm an authority on ASP but yes, I have a few satisfied clients in my portfolio and I know enough to get you started. Byrepparttar 131918 time you are through with these daily chapters, you'll have learnt enough to make a small shopping cart in ASP.

Most ofrepparttar 131919 chapters will be organized in a linear fashion, so that you always have to work according to your previously acquired knowledge. Sometimes I'll sound like writingrepparttar 131920 entire chapter in a bulleted form, but that'll be just to keeprepparttar 131921 unnecessary (I mean that is out ofrepparttar 131922 scope of this reference) stuff out.

I wish I could know your name too. But I don't know how many people are going to read this. If you want to let me know that YOU arerepparttar 131923 one atrepparttar 131924 moment reading this, you are welcome to send me a friendly message at mailto:amrit@bytesworth.com. I love to hear from people (ok,repparttar 131925 word "people" excludes Spammers - they are not people).

Enough of my warming up. Here we go withrepparttar 131926 first chapter.

Installing Personal Web Server

==> Beginning of Chapter One <==

If you want to work with ASP (Active Server Pages) on your personal computer, you need to installrepparttar 131927 Personal Web Server (PWS). Asrepparttar 131928 name indicates, it's a server. Unlikerepparttar 131929 normal HTML pages, dynamic pages (either created with CGI, PHP, ASP or Cold Fusion) require some sort of a server to carry on their business. Without a server, you can create a dynamic page, but you cannot view it decently inrepparttar 131930 run-time mode.

Since I mostly work withrepparttar 131931 Active Server Pages using PWS, I'll tell you how to installrepparttar 131932 PWS.

It ships free withrepparttar 131933 Win98 CD, and should be inrepparttar 131934 add-ons folder.

>From there, installrepparttar 131935 PWS on your computer. The installation program creates a folder, inetpub inrepparttar 131936 directly you specify duringrepparttar 131937 installation. This inetpub, further has a folder, wwwroot. So if you install your PWS on your C drive,repparttar 131938 wwwroot path should be

C:INETPUBWWWROOT

Allrepparttar 131939 files that you create, you store under wwwroot. What we generally do is, we create separate folders for separate projects underrepparttar 131940 wwwroot folder. So if I created bytesworth folder in wwwroot folder,repparttar 131941 full path should be

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use