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


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

Learning ASP Series -- Getting Your Hands Dirty With VBScript

Written by Amrit Hallan

I know some people don't like VBScript for being Microsoft-Centric, but it's very easy to get familiar with, and once you know how to create your ASP pages in VBScript, you can move on to any programming language of your choice.

First thing first: HTML tags and ASP scripts don't socialize well, and although it is not a politically correct agenda, you have to segregate them. Whenever you are writingrepparttar VBScript code for ASP, encloserepparttar 131914 code within <% %>.

So if you want to initialize a VBScript variable, do it like this:

<% Dim name name = "Tutan Khamen" %>

For instance, if you want to userepparttar 131915 variable "name" in your HTML (ASP, actually) page, all you have to do is:

<%@Language=VBScript%> <% Option Explicit %> Testing a VBSCript< itle> </head> <body> <% Dim name name = "Tutan Khamen" %> <br><br></font></td><!-- google_ad_section_end --></tr><tr><td>Cont'd on page 2 ==<a class="mlink" href="2-Learning_ASP_Series_-_Installing_Personal_Web_Server-31917.htm">></a></td></tr></table><script type="text/javascript"><!-- google_ad_client = "pub-5766870852072819"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_channel ="8831454965"; google_color_border = "CFB9A1"; google_color_bg = "CFB9A1"; google_color_link = "000000"; google_color_url = "431B02"; google_color_text = "431B02"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> <table width="770" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td height="48" align="center" background="images/bg_nav_bottm.jpg"><span class="style3">ImproveHomeLife.com © 2005<br> <a href="terms.html" rel="nofollow">Terms of Use</a></span></td> </tr> </table></td> </tr> </table> <script type="text/javascript"> var HASH_ESCAPED="%23"; function TrackIt(adUnit){ if (window.status) { var adDomain = escape(window.status.substring(6)); var pyPage = document.location.pathname; var params = document.location.search; var hasAnchor = params.lastIndexOf(HASH_ESCAPED)!= -1; params = hasAnchor? (params.substring(0, params.lastIndexOf(HASH_ESCAPED))) : params; pyPage = escape(pyPage.substring(pyPage.lastIndexOf('/') + 1)); pyPage = pyPage + params; var curTime = new Date().valueOf(); var bug = new Image(); bug.src = '/track/adsenseTrack.php?pyPage=' + pyPage + '&adDomain=' + adDomain + '&adUnit=' + adUnit + "&time=" + curTime; } } function TrackIt0() {TrackIt(0); } function TrackIt1() {TrackIt(1); } function TrackIt2() {TrackIt(2); } var elements = document.getElementsByTagName("iframe"); for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { //elements[i].onfocus = TrackIt; if (i==0) elements[i].onfocus = TrackIt0; if (i==1) elements[i].onfocus = TrackIt1; if (i==2) elements[i].onfocus = TrackIt2; } } </script> <!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" --> <script type="text/javascript" language="JavaScript">var site="s19improve"</script> <script type="text/javascript" language="JavaScript1.2" src="http://s19.sitemeter.com/js/counter.js?site=s19improve"> </script> <noscript> <a href="http://s19.sitemeter.com/stats.asp?site=s19improve" target="_top"> <img src="http://s19.sitemeter.com/meter.asp?site=s19improve" alt="Site Meter" border=0></a> </noscript> <!-- Copyright (c)2002 Site Meter --> <!--WEBBOT bot="HTMLMarkup" Endspan --> </body> </html>