Send an array to another page

  • Thread starter Thread starter Pepehammer
  • Start date Start date
P

Pepehammer

Hi there guys!

I need to send an array from one page to another

How can i do this?

Thanks
 
There are a couple ways.

1) You could use the Session object to store the array. Then read the
array on the other page.
2) Serialize the array and send it using the querystring.
 
There are other possibilities as well, depending upon the requirements.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
What happens if the second page is in a new browser window? Does that create a new session? Just
wondering, 'cause I need to pass an array to a second page in a new browser window.

George
 
Scratch that. I just found out that opening a new window from another window
uses the same session, so a session variable to hold the array works fine.

George
 
Hi George,

It all depends on the client browser. In some browsers, Sessions are NOT
shared by different browser instances.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top