ASP Code
  Home arrow ASP Code arrow Page 4 - ASP: The Beginning
Iron Speed
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 / 14
    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
     
    Iron Speed
     
    ADVERTISEMENT

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    ASP: The Beginning - Naming Conventions


    (Page 4 of 4 )

    When you name a variable, you must follow certain rules, or conventions. Here they are in a nifty little list:

    • The name must start with a character from the alphabet (a through z or A through Z).

    • You cannot use a period in the variable name.

    • No two variables can have the same name within the same scope. Really, it is best to avoid naming two variables the same.

    A Brief Example of Sessions in ASP

    While we do not have time to cover Sessions in-depth in this article, I would like to go over how one looks briefly (we will discuss Sessions and Cookies in the next tutorial). Here is a simple code to read what time the user visited the website and greet them:


    <html>

    <body>

    <%

    Session(“TheTime”) = Time()

    response.write(“Greetings nerdlings! Welcome to my humble abode. The time is currently: “ & Session(“TheTime”))

    %>

    This will display:

      Greetings nerdlings! Welcome to my humble abode. The time is currently:   12:10:19 PM.

    Well that is all the time we have for this exciting episode. In the next article we will be discussing cookies (yummy) and sessions, and how to work with them. So be sure to drop on by for a spell. Maybe you can even take a swim in our concrete pond.

    Till then...


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · 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...

    IBM developerWorks




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway