msgbartop
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.
msgbarbottom

06 Mar 10 Learning ASP Series -- Getting Your Hands Dirty With VBScript

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 writing the VBScript code for ASP, enclose the 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 use the 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" %></p> <hr> <p><%=name%>! An ancient Egyptian mummy!</p></p> <p></body> </html></p> <p>Another example:</p> <p><%@Language=VBScript%> <% Option Explicit %> <html> <head> <title>Testing a VBSCript< itle> </head> <body> <% Dim number1, number2 number1 = 33 number2 = 44 %></p> <hr> <p>The product of <%=number1%> and <%=number2%> is <%=number1 * number2%></p></p> <p></body> </html></p> <p>So now its amply clear that whenever you want to insert Server Side code, or a part of it, you enclose it within <% %>.</p> <p>You can try making short programs and test run the page.</p> <hr> <p>About the author: Amrit Hallan is a freelance web designer. For all web site development and web promotion needs, you can get in touch with him at http://www.bytesworth.com. For more such articles, visit http://www.bytesworth.com/articles and http://www.bytesworth.com/learn.</p><div style="padding-top: 12px; padding-bottom: 12px;">Author: Amrit Hallan</div> <div style="clear:both;"></div> <div class="cont_adbox"><script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-8573989-12"); pageTracker._trackPageview(); } catch(err) {}</script></div> <div style="clear:both"></div> </div> <div class='sidebar span-8 last'> <div class='sidebarboxtop'><img src="/templates/googlechrome/images/sidebartop.gif" alt="sidebartop" /></div> <div class="sidebarbox"> <div class="adbox"><script type="text/javascript"><!-- google_ad_client = "pub-7109986212988417"; /* sidebar-img */ google_ad_slot = "2049673886"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div> <div class='sidebarboxbottom'><img src="/templates/googlechrome/images/sidebarbottom.gif" alt="sidebarbottom" /></div> <div class='sidebarboxtop'><img src="/templates/googlechrome/images/sidebartop.gif" alt="sidebartop" /></div> <div class="sidebarbox"> <div class="adbox"><a href="http://codeflop.com">codeflop.com</a><br> <a href="http://gadgetstreet.com">gadgetstreet.com</a><br> <A href="http://pickthat.com">pickthat.com</a><br> <a href="http://preparethinksurvive.com">preparethinksurvive.com</a><br> <a href="http://scratchyourself.com">scratchyourself.com</a> <a href="http://wixip.com">wixip.com</a><br></div> </div> <div class='sidebarboxbottom'><img src="/templates/googlechrome/images/sidebarbottom.gif" alt="sidebarbottom" /></div> <div class='sidebarboxtop'><img src="/templates/googlechrome/images/sidebartop.gif" alt="sidebartop" /></div> <div class='sidebarbox'> <h3>Archives</h3> <ul> <li><A href='http://CODEFLOP.COM/archive-2009-05.html'>May, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-06.html'>June, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-07.html'>July, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-08.html'>August, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-09.html'>September, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-10.html'>October, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-11.html'>November, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2009-12.html'>December, 2009</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-01.html'>January, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-02.html'>February, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-03.html'>March, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-04.html'>April, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-05.html'>May, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-06.html'>June, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-07.html'>July, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-08.html'>August, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-09.html'>September, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-10.html'>October, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-11.html'>November, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2010-12.html'>December, 2010</A></li> <li><A href='http://CODEFLOP.COM/archive-2011-01.html'>January, 2011</A></li> <li><A href='http://CODEFLOP.COM/archive-2011-02.html'>February, 2011</A></li> <li><A href='http://CODEFLOP.COM/archive-2011-03.html'>March, 2011</A></li> <li><A href='http://CODEFLOP.COM/archive-2011-04.html'>April, 2011</A></li> <li><A href='http://CODEFLOP.COM/archive-2011-05.html'>May, 2011</A></li> <li><A href='http://CODEFLOP.COM/archive-2011-06.html'>June, 2011</A></li> </ul> </div> <div class='sidebarboxbottom'><img src="/templates/googlechrome/images/sidebarbottom.gif" alt="sidebarbottom" /></div> </div> </div> <!-- container --> <div class="footerpush"></div> </div> <!--wrapper --> <div class='footer'> <div class="footercontent"> CodeFlop.com is powered by <a href="http://wordpress.org/">WordPress</a> </div> </div> </body> </html>