ASP
  Home arrow ASP arrow Page 3 - Grabbing Data On The Fly
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
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

Grabbing Data On The Fly
By: Phanix Chen
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2001-12-08

    Table of Contents:
  • Grabbing Data On The Fly
  • Some methods for passing data around
  • Using frames to solve the refresh problem
  • Query and return
  • The processframe.asp page
  • Conclusion

  • 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

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Grabbing Data On The Fly - Using frames to solve the refresh problem


    (Page 3 of 6 )

    Suppose that we manage an online bookstore, and that we use a web page to add new books to the database. While we are keying in the details of a new book, suppose we aren’t sure of the author. We could create a form that would allow us to enter part of the authors name and then select the author from a list of possible authors who match our criteria. The form might look like this:

    A sample form from our online bookstore

    Suppose the drop down component of “Author” is named “AuthorID”. This example will work with the sample SQL database, pubs. Our author database holds the values of author ID (au_id), author name (au_lname), etc. We want to display author name in the drop down component, and author ID as the value of each item in the drop down component. We can enter a keyword in the text field of “Query”, then click the “Query” button. After clicking, the keyword will be sent to a hidden frame (frame size is zero) named “ProcessFrame”. An ASP script will execute a LIKE SQL query on the authors’ table of the pubs database in the “ProcessFrame” and return the result to the source frame (named “MainFrame”). Lastly, the “Author” drop down component will be filled with the results of the query. The flow of operation looks like this:

    The flow of operation for our application

    More ASP Articles
    More By Phanix Chen


     

    ASP ARTICLES

    - Central Scoreboard with Flash and ASP
    - Calorie Counter Using WAP and ASP
    - Creating PGP-Encrypted E-Mails Using ASP
    - Be My Guest in ASP
    - Session Replacement in ASP
    - Securing ASP Data Access Credentials Using t...
    - The Not So Ordinary Address Book
    - Adding and Displaying Data Easily via ASP an...
    - Sending Email From a Form in ASP
    - Adding Member Services in ASP
    - Removing Unconfirmed Members
    - Trapping HTTP 500.100 - Internal Server Error
    - So Many Rows, So Little Time! - Case Study
    - XDO: An XML Engine Class for Classic ASP
    - Credit Card Fraud Prevention Using ASP and C...


    Iron Speed





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