如何将一个页面的值传递给另一个页面并维护状态 [英] How to pass values of one page to another page and maintain state

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

问题描述

我想将一个页面的值传递给另一个页面,并且chechk用户从一个页面传递到另一个页面。

I want to pass value of one page to another and chechk user has came from one page to another..

推荐答案

将信息存储在Session对象中: MSDN [ ^ ]

你可以存储它在第一页中,然后在后续页面中检索。
Store the info in the Session object: MSDN[^]
You can store it in the first page, and retrieve in in subsequent ones.


这里也有一些链接 -

http://ramanisandeep.net/2008/11/21/passing-values-from-one- page-to-another-page-aspnet / [ ^ ]

转移页面值到另一页 [ ^ ]

http://www.netrostar.com/How-to-pass-data-from-one-page-to-another-in-ASPNET [ ^ ]
Couple of links available here too -
http://ramanisandeep.net/2008/11/21/passing-values-from-one-page-to-another-page-aspnet/[^]
Transferring page values to another page[^]
http://www.netrostar.com/How-to-pass-data-from-one-page-to-another-in-ASPNET[^]


使用Reponse.Rediredct(home.aspx?value =0ABC)并将值传递一页到另一页

你可以在页面加载时使用字符串值= Request [ 价值]。搁置

对象检查...

它会起作用
Use Reponse.Rediredct(home.aspx?value="0ABC") and pass value one page to another page
and you can receive on page loading using string value=Request["value"].Tosting
object check for that...
It will work


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

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