Link to home
Start Free TrialLog in
Avatar of big_guy
big_guy

asked on

Sharing same Record Set across many ASPs

Hi, I'm using Visual Interdeve 6.0 to create an ASP application.  Is it possible to create ONE recordset and manipulate it (add, delete, navigate, update) through many active server pages?  I get a 'requires object' error whenever I try to reference the recordset from a page other than the one it is created.
Help is appreciated, thanks!
Avatar of PBall
PBall

The recordset usually exist only in the scope of the page.  Meaning if you load another page, recordset is no more.

You can however, cache recordset inside a Session variable, tho not advisable for scalability unless you have tons and tons of memory or only have very very few users.

To cache the recordset just assign it to as session and retrieve the session on another page before doing any operation on the recordset.

Initialization code:

Set Session("theRecordset") = myRS

where myRS is a valid recordset

then do:

Set myRS = Session("theRecordset")

in the pages that need to access the cached recordset.

ASKER CERTIFIED SOLUTION
Avatar of ssite
ssite

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial