Click here to Skip to main content
13,139,569 members (53,662 online)
Click here to Skip to main content
Add your own
alternative version


34 bookmarked
Posted 12 Nov 2002

Get data from database without refreshing the page

, 13 Nov 2002
Rate this:
Please Sign up or sign in to vote.
works in all browsers


The flow of the application is interrupted by page reloads whenever the client communicates with the server. Here is the simple solution to this problem, you can get data from a database without refreshing page. I tested this application with all browsers and it worked fine.

Zip file contains:

  • Default.asp (HTML interface)
  • getAllMembers.asp (gets all data from database)
  • db.mdb (User information database)

Following function calls another page to get information (data) from the database. Pass "First name" and "Last Name" to getAllMembers.asp page.

function getAllMembers()
    var FirstName;
    var LastName;
    var memberName;
    FirstName = document.frmUsers.txtFirstName.value;
    LastName =  document.frmUsers.txtLastName.value;
    memberName = "firstName="+ FirstName +"&lastName="+ LastName;"getAllMembers.asp?"+ memberName,"lstNames",

In getAllMembers.asp page, use window.opener.document.frm. This method is used to pass all values to the list box on main page.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Amol Rajmane
Web Developer
United States United States

  • A Software Professional with five years of experience as Software Engineer in Analysis, Design and Development of software applications using ASP/JavaScript/SQL Server 2000.
  • Rich development experience in Internet/Intranet based applications using ASP, MS SQL Server, JavaScript and tools like Visual InterDev 6.0.
  • Expertise in ASP, VBScript, JavaScript, HTML, XML, COM, and SQL Server.
  • Experience in analyzing and handling complex Database Design.
  • He holds BS in Electronics Engineering.

You may also be interested in...


Comments and Discussions

QuestionHow to retrieve all results from a site? Pin
indyan_guy26-Sep-08 21:18
memberindyan_guy26-Sep-08 21:18 
GeneralHelp me: ASp Source code to generate ecard system in our website Pin
anuj vohra30-Sep-05 20:32
memberanuj vohra30-Sep-05 20:32 
GeneralASP Databases Pin
AdeelAnsari2-Mar-04 0:16
memberAdeelAnsari2-Mar-04 0:16 
Generalasp Pin
Anonymous24-Oct-03 13:51
sussAnonymous24-Oct-03 13:51 
GeneralMan old school stuff... Pin
Anonymous18-Nov-02 22:59
sussAnonymous18-Nov-02 22:59 
GeneralOkay, but what if... Pin
Marc Merritt18-Nov-02 4:44
memberMarc Merritt18-Nov-02 4:44 
GeneralRe: Okay, but what if... Pin
JediBaron18-Nov-02 7:51
memberJediBaron18-Nov-02 7:51 
GeneralRe: Okay, but what if... Pin
Amol Rajmane18-Nov-02 8:04
memberAmol Rajmane18-Nov-02 8:04 
GeneralHorrible article Pin
Mark Janveaux14-Nov-02 15:38
memberMark Janveaux14-Nov-02 15:38 
GeneralRe: Horrible article Pin
Victor Vogelpoel14-Nov-02 20:23
memberVictor Vogelpoel14-Nov-02 20:23 
GeneralInteresting approach ... Pin
Dejan Petrovic14-Nov-02 12:30
memberDejan Petrovic14-Nov-02 12:30 
Generalummmmm Pin
dclark14-Nov-02 6:21
memberdclark14-Nov-02 6:21 
GeneralRe: ummmmm Pin
Amol Rajmane14-Nov-02 6:49
memberAmol Rajmane14-Nov-02 6:49 
Generalpune "WebDezigner" before 4 years Pin
Anonymous31-Jan-05 22:59
sussAnonymous31-Jan-05 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170915.1 | Last Updated 14 Nov 2002
Article Copyright 2002 by Amol Rajmane
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid