static arrays

H

Hugh Welford

Hi -

WINXP/FP2000/IIS4

Is is possible to pass a populated static array to a new page - as session
variable, maybe or cookie?

Thanks Hugh
 
A

Aaron [SQL Server MVP]

Yes, did you try it? Page 1:

<%
dim myarray(1)
myarray(0) = "foo"
myarray(1) = "bar"
session("myArray") = myArray
%>

Then on page 2:

<%
myarray = Session("myArray")
....
%>

A cookie is just a text file, so it doesn't support complex datatypes like
arrays or objects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top