
ASP - Array in Session Variable ? (JScript)
I would recomend nr 1 since you don't want to use the database more then
once, I must say that I prefer to use the database many times over putting
an
<%
i=1;
while(!rsDB.EOF){
%>
<input type="hidden" name="nr<%=i%>" value="<%rsDB('fieldname')%>">
<%
rsDB.MoveNext();
i++
Quote:
}
%>
and then send i to the next page to be able to get the information back, and
on the other page get the info in the same way:
ii=1;
s = new Array()
while(ii!=(i+1)){
s[ii]=Request.Form('nr'+ii);
ii++;
Quote:
}
or something like this.
For a number of reasons, mainly couse of changes to the database I guess,
though this works just as well I guess.....
// Malte ...
Quote:
> I need the data in a RecordSet (result of a search) on another page
(without
> the possibility of doing another SQL-query to become the same RecordSet);
> What's in fact the best solution?
> 1- putting the recordset into an array and the array in the Session
> OR
> 2-is there a way to (JScript) use the RecordSet on another page?? (to be
> able to browse through it; using 'MoveNext' etc.)
> thanx!