I need to pass a textstring and an array from one asp page to another. They are created by program code, not by form input.
I am getting various errors, including "type mismatch" even though I have identical Dim statements in each page.
Here's my test code. Please tell me what I'm doing wrong.
PAGE1
-------
<%@Language=VBscript%>
<%Option Explicit%>
<html>
<head>
<title>TempTest</title>
</head>
<body>
<%
Dim MyList, MyArray(5), I
MyList = "abcde"
For I = 1 to 5
MyArray(i)= I
next
%>
[<a href=" Paramaters</a>]
</body>
</html>
--------------------------------------------------------
PAGE 2
<%@Language=VBscript%>
<%Option Explicit%>
<html>
<head>
<title>TempTest2</title>
</head>
<body>
<%
Dim MyList2, MyArray2(5), I2
MyList2 = request.querystring("MyList"
response.write "*** DEBUG: MyList2 = " & MyList2 & "<BR>"
MyArray2 = request.querystring("MyArray"
For I2 = 1 to 5
response.write MyArray2(I2) & "<BR>"
next
%>
</body>
</html>
I am getting various errors, including "type mismatch" even though I have identical Dim statements in each page.
Here's my test code. Please tell me what I'm doing wrong.
PAGE1
-------
<%@Language=VBscript%>
<%Option Explicit%>
<html>
<head>
<title>TempTest</title>
</head>
<body>
<%
Dim MyList, MyArray(5), I
MyList = "abcde"
For I = 1 to 5
MyArray(i)= I
next
%>
[<a href=" Paramaters</a>]
</body>
</html>
--------------------------------------------------------
PAGE 2
<%@Language=VBscript%>
<%Option Explicit%>
<html>
<head>
<title>TempTest2</title>
</head>
<body>
<%
Dim MyList2, MyArray2(5), I2
MyList2 = request.querystring("MyList"
response.write "*** DEBUG: MyList2 = " & MyList2 & "<BR>"
MyArray2 = request.querystring("MyArray"
For I2 = 1 to 5
response.write MyArray2(I2) & "<BR>"
next
%>
</body>
</html>