ASP
  Home arrow ASP arrow Page 8 - Writing Your First ASP Application ( Quick...
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 
Mobile Linux 
App Generation ROI 
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

Writing Your First ASP Application ( Quick Start )
By: Rich Smith
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 82
    2003-08-06

    Table of Contents:
  • Writing Your First ASP Application ( Quick Start )
  • Users On Your Website
  • Dissecting The Needs For The Application
  • Login Page
  • Showing The List Of Users
  • Simplifying The Code
  • Removing Users From The List
  • Additional Enhancements

  • 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


    Writing Your First ASP Application ( Quick Start ) - Additional Enhancements


    (Page 8 of 8 )

    That completes the rudimentary application. This code will functionally achieve the results that we started out with. For the sake of readability, it has been left very simple. If you were to wish to use this code in an actual application, there are many enhancements you could and some that you really should add. For example:

    • Error handling for database connectivity issues.
    • Unique identification column in the UsersOnline table. As the code is now, if there are two people with the name “Rich” logged in, when the first one logs out of the system, both of them are removed from the table.
    • Login times could be also saved and displayed.
    • Application_OnStart and Application_OnEnd functions could be utilized to clean out the UsersOnline table when the server stops and starts again.
    • Database logic could be fully enclosed within include files.
    • Logic could be added to the ShowUsers subroutine to suppress the current user’s name, so you wouldn’t see your own name in the list.

    So there you have it. We have just designed and created an actual ASP application. Of course, what we made does not encompass a full website, but it adds the ability to have a list of active users on your website. I hope that reviewing this code helps those of you who are just getting started in ASP to better visualize the concepts, and puts you on the road to creating your own ASP applications a little quicker.

    About the author:
    Rich Smith owns and operates Jamsoft Development, a programming firm who specializes in custom systems for small businesses.
    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.

     

    ASP ARTICLES

    - Using MySQL with ASP
    - ADO for the Beginner
    - ADO.NET 101: Data Rendering with a DataGrid ...
    - Introducing SoftArtisans OfficeWriter 3.0 En...
    - Getting Remote Files With ASP
    - The Real Basics of Functions in ASP
    - Enhancing Readability with ASP
    - Mimicking PHP's String Formatting Functions
    - Windows Server Hacks 12, 77, and 98
    - How to Sort a Multi-Dimensional Array
    - Developing an Information Management Tool wi...
    - What are Active Server Pages?
    - Getting Remote Pages with ASP
    - FTP’ing Files with ASP
    - Apply Single-Sign-On to Your Application





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT