Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Jun 10, 1999

Returning data in a neatly formatted HTML page

Question:
I am using a combination of HTML and ASP pages to pull data from a database. I use one HTML page to request the info with a form, which is then passed to an APS page that gathers the recordset. I want to then pass (access) the recordset to a generic results HTML page that I can use regardless of the search type. I can't figure out how to get the recordset at the final HTML page.

Answer:
Your final HTML page will need to be an ASP page. Make your generic results HTML page as an ASP page. Then insert the results of your database recordset fields into the appropriate locations.

To pass the recordset variable from one asp page to the other, you will need to either use the Application object or the Session object. In the first ASP page, store the recordset into an Application or Session variable. In the second asp page, retrieve it accordingly.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date