用于将值从一页传递到另一页的代码 [英] code for passing values from one page to other

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

问题描述

如何将值从一页传递到另一页.使用session.

How can I pass the values from one page to other. Using session .

推荐答案

那不是最好的方法,但是答案是使用会话.一页在会话中存储一个值,另一页检索它.如果您不知道如何使用会话,则应该在网上搜索并阅读一些文章,但这只是名称/值的集合.
That''s not the best way, but the answer is, use the session. One page stores a value in the session and the other retrieves it. If you don''t know how to use the session, you should search the web and read some articles, but it''s just a name/value collection.


您可以使用任何下面的方法来传输值

  • 查询字符串
  • Cookies
  • 会话变量
  • Server.Transfer
  • 回发URL
You may use any of below ways to transfer values

  • Query Strings
  • Cookies
  • Session variables
  • Server.Transfer
  • Post Back URL


看看此处 [ ^ ]


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

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