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

编程入门 行业动态 更新时间:2024-10-25 21:30:01
本文介绍了如何将值数组从一个页面传递到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将一个值数组从一个页面传递到另一个页面,如何使用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.

更多推荐

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

本文发布于:2023-05-25 10:57:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226648.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!