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!
Help is appreciated, thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.