you can store arrays in session variables as Dhruba said but remember to empty these variables (to reset them var="") when finished working on them since session on end is never fired on IIS4 (and sometimes on 5) thus this will consume server resources leadin to crash your web server
rgrd
Main Topics
Browse All Topics





by: DhrubaPosted on 2001-01-07 at 20:27:39ID: 94174
Just check your code with the following example. This I tested - working.
__________ __________ _____
__________ __________ _______
__________ __________ ____
Write two asp pages as follows:
__________________________
"Code Arr1.asp"
<%@ Language=VBScript %>
<%
redim a(2)
a(0)="Hello"
a(1)="Hi"
Session("b")=a
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P> </P>
</BODY>
<script>
document.location.replace ("arr2.asp")
</script>
</HTML>
__________________________
"arr2.asp"
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%Response.Write Session("b")(0)%>
<P> </P>
</BODY>
</HTML>
__________________________