When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles [1.x] [2.0]
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips
Search

Sections:
Book Reviews
Sample Chapters
Commonly Asked Message Board Questions
Headlines from ASPWire.com
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
Web Hosts
XML Info
Information:
Advertise
Feedback
Author an Article
Technology Jobs



















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
ASP ASP.NET ASP FAQs Message Board Feedback ASP Jobs
Print this page.

Business Systems Analyst - Clearing - SQL Server - ASP - VB (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume

Declare all your variables at the top of your ASP page!


  • Back to Beginner's Tip Index

    In the previous tip, I mentioned how ASP pages which don't use Option Explicit and have variable names that seem to mysteriously appear are difficult to read. The same is true if your variable names are hectically declared all over the ASP page.

    ASP variables should be declared in one of two places: at the top of the ASP page, before any other ASP commands or logic is implemented, or at the block of code they will be used in exclusively. Do not declare a variable half way down your ASP page which is only used once at the very end. This does nothing but confuse those who are reading your source code!

    Before you mosey on, be sure to read the summary page! Have a great day, and happy programming!

  • Back to Beginner's Tip Index


    Windows Internet Technology | ASP.NET [1.x] [2.0] | ASPMessageboard.com | ASPFAQs.com | Advertise | Feedback | Author an Article


  • The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers