ASP Code
  Home arrow ASP Code arrow ASP: The Beginning
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP CODE

ASP: The Beginning
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 29
    2007-11-20

    Table of Contents:
  • ASP: The Beginning
  • Variables
  • Working with Variables
  • Naming Conventions

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    ASP: The Beginning


    (Page 1 of 4 )

    ASP stands for Active Server Pages and is a Microsoft Technology that allows you to create dynamic web pages, interactive content, and seamless database connections. In this series of tutorials we will learn to use it to create a series of websites from the simple to the complex. There is a lot of ground to cover, so let's get started.

    But before we do, I am going to make a few assumptions:

    • You have at least a basic understanding of HTML.
    • You are aware of the existence of XHTML.
    • You have some knowledge of a scripting language such as JavaScript or VBScript.
    • You have a text editor such as the handy-dandy Notepad File.
    • You have access to a host that supports ASP or
    • You have IIS installed on your computer.

    If you said yes to all of these, then carry on my wayward son. If not, lay your weary head to rest and don't you cry no more. Go learn 'em and come back. What are you waiting for? The whole class is waiting. And don't forget to share that pizza.

    Let's go ahead and dive right in:

    Syntax

    ASP files consist of HTML tags, and server scripts, which can contain a variety of of expressions, procedures, operators, and statements. The default language for ASP is VBScript. It does support JavaScript (and Microsoft's Jscript), as well as languages like PERL and PYTHON, but for any language outside of VBScript and Jscript you will need to install the appropriate script engines for them. For the purposes of this tutorial we will be using VBScript.

    Our First Program

    Traditionally, the old stand-by “Hello World” program is used to introduce newbie programmers to the world of, well...programming. Similar to how guitarists and bassists are forced to learn Smoke on the Water by Deep Purple. Well if you have read my previous articles you know my complete disdain for this practice. Disdain I say!

    <html>

    <body>

    <%

    response.write(“My name is James, conqueror of your Puny World! ALL HAIL HIS MIGHTINESS!”)

    %>

    </body>

    </html>

    This will print the text below to your browser:

      My name is James, conqueror of your Puny World! ALL HAIL HIS MIGHTINESS!

    You could also accomplish the same with this code:


    <html>

    <body>

    <%=“My name is James, conqueror of your Puny World! ALL HAIL HIS MIGHTINESS!”%>

    </body>

    </html>

    More ASP Code Articles
    More By James Payne


       · Thanks for stopping by. In this article we discuss the basics of ASP and how to...
       · ASP? - not ASP.NET, but classic ASP? This *must* be a repost of some article...
       · Believe it or not, its a bonafide ASP without the .Net article. Aimed mostly at the...
     

    ASP CODE ARTICLES

    - ASP Forms
    - ASP: The Beginning
    - Getting Remote Files With ASP Continued
    - Inbox and Outbox Manipulation in ASP
    - Relational DropDownList Using VB.NET
    - Ad Tracking URL Hits
    - Use ViewState to display one record per page...
    - Send Email using ASP.NET formatted in HTML
    - ASP File Explorer
    - ASP/XML Interview questions by Srivatsan Sri...
    - Various methods of setting Date values to a ...
    - Conditional DataGrid Item and using checkbox...
    - Fill .NET Listbox with SQL DataReader
    - Filling Dropdown box using Code-Behinds in C#
    - FLAMES code sample written in .NET What is F...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek