价值转移
问题描述:
如何在没有会话条件的情况下转移另一个页面的值
how to transfer the value for another page without session condition
答
只需重定向到您想要的新页面:
Response.Redirect("anotherpage.aspx?@parameter1Name={0}¶meter2Name={1}",parameter1Value,parameter2Value,true)
并在新页面的page_load中获取参数值:
Dim strValue As String = Request.QueryString.Item("parameter1Name")
Just redirect to the new page you want:
Response.Redirect("anotherpage.aspx?@parameter1Name={0}¶meter2Name={1}",parameter1Value,parameter2Value,true)
and in the page_load of new page get the parameter values:
Dim strValue As String = Request.QueryString.Item("parameter1Name")