且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将值数组从一个页面传递到另一个页面

更新时间:2022-05-09 22:21:58

***的方法是通过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.