devxlogo

Returning data in a neatly formatted HTML page

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.

See also  Is Machine Learning Automating Creativity in Graphic Design?
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist