如何将值数组从一个页面传递到另一个页面 [英] How to pass an array of values from one page to another

查看:724
本文介绍了如何将值数组从一个页面传递到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个值数组从一个页面传递到另一个页面,如何使用href或response.redirect传递它

I want to pass an array of values from one page to another,How to pass it using href or response.redirect

推荐答案

最好的方法是通过Cookie或Session变量,具体取决于您希望它们持续多长时间。您可以通过查询字符串传递它们:

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.


这篇关于如何将值数组从一个页面传递到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆