Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to pass an array of values from one page to another,How to pass it using href or response.redirect
Posted
Comments
Karthik_Mahalingam 24-Jan-15 4:58am    
you mean query string?
if so, you need to convert the array to Comma Separated string and pass it along with the url as
http:www.abc.com?array=1,2,3,4,5,6
and in the destination page, you can convert the string to an array by using split function.

1 solution

The best ways are either via Cookies or the Session variable, depending on how long you want them to persist. You could pass them via a query string:
myDomain.com/mypage.apsx?myArray=1,2,3,4,5,6
But that is a rather ugly solution as it appears by default in the browser address bar.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900