本文介绍了如何将值数组从一个页面传递到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将一个值数组从一个页面传递到另一个页面,如何使用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/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.
更多推荐
如何将值数组从一个页面传递到另一个页面
发布评论