如何将一个页面的值传递给另一个页面并维护状态
问题描述:
我想将一个页面的值传递给另一个页面,并且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