I'm opening a recordset and then I'm loading a data into my class (saved in another asp file), but I need to use it in "run on client" script.
How can I do it?
Here's what I like to think is a pretty good FAQ that Swany and I wrote on the subject of server side vs. client side scripting, and how to communicate between the two.
I need to use the data on the client side and I don't want to do too many round-trips, so I want that everything in the recordset will be available to client. On the server side I'm reading the data from the recordset and store it into my class, I would like to use the class on the client side.
Thank You
You could store all the values in a multidimensional client side array -- using the method that is outlined in the FAQ, but depending on how much data was in the recordset, that could be one big array --
Otherwise, you could store the recordset in a session variable (although this isn't a practice that's smiled upon because it eats up server resources, and isn't good for high traffic sites)...
I guess of the two, probably the first is the best idea, but if the recordset is huge, it could make lesser machines creak and rattle... with all the data in memory.
It's fairly well agreed upon that multiple trips to the server for data isn't necessarily a bad thing, that is, of course, if your other options provide even worse performance than this option...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.