更新时间:2023-01-08 12:41:43
请参阅我最近的回答:在页面之间传递数据 [ ^ ]。-SA
在ASP.NET中页面之间传递值
您可以使用
查询字符串
Cookies
会话变量
Server.Transfer
Post back URL
将数据/参数/值从一个aspx页面传递到另一个aspx页面 [ ^ ]
将值从一个页面传递到另一个页面 - ASP.NET [ ^ ]
I want to pass the value from one page to another page in asp.net.
Where there are two pages
page1,page2
In the page1 there is a condition, if it is correct the value from the string is take to the page2 and show in the label "correct". If it is not correct the value from the page1 string is take to the page2 and show in the label "not correct".
How to take value from one page1 to page2.
Please see my recent answer: Passing Data Between Pages[^].—SA
Passing Value Between Pages in ASP.NET
You may use
Query Strings
Cookies
Session variables
Server.Transfer
Post Back URL
Passing data/parameters/values from one aspx page to another aspx page[^]
Passing Values from One Page to Another Page – ASP.NET[^]