简体   繁体   English

如何使用server.execute导航器从一页转移值并将其显示在下一页的标签中

[英]how to transfer value from one page and display it into next page's label using server.execute navigator

I'm passing the value to the next page using server.execute, but I'm unable to get that value into next page. 我正在使用server.execute将值传递到下一页,但无法将该值传递到下一页。

//this is WebForm1.aspx.cs
protected void Button1_Click(object sender, EventArgs e)
    {
        Server.Execute("WebForm2.aspx");
    }




//this is WebForm2.aspx.cs
protected void Page_Load(object sender, EventArgs e)
       {
           Label1.Text = //what method should i use to get the vale from WebForm1.aspx.cs
       }

Edit : 编辑:

On page1 (Button click etc) : Server.Execute("page2.aspx?v=" + YourEncryptFunction(TextBox1.Text)); 在第1页上(单击按钮等): Server.Execute("page2.aspx?v=" + YourEncryptFunction(TextBox1.Text));

On page2 (Page_Load) : TextBox1.Text = YourDecRyptFunction(Request.QueryString[0]); 在第2页(Page_Load)上: TextBox1.Text = YourDecRyptFunction(Request.QueryString[0]);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Server.Execute()在当前页面中打开新页面 - Server.Execute() opens the new page in current page 在server.execute(“ ../../ abc.aspx”)之后,如何在我的第一页上获得控件。 我必须在server.execute()之后显示警报 - how can I to get controls back on my first page after server.execute(“../../abc.aspx”). I have to show an alert after server.execute() Server.Transfer() 对比服务器.执行() - Server.Transfer() Vs. Server.Execute() 如何使用Server.Transfer()将文本框值从usercontrol(ascx)传递到另一个页面(aspx) - How can I pass textbox value from usercontrol(ascx) to another page (aspx) using Server.Transfer() 在ASMX Web服务中使用Server.Execute()呈现UserControl的问题 - Issues rendering UserControl using Server.Execute() in an ASMX web service 如何使母版页在每个页面的标签上显示一个值 - How to make Master Page to display a value on its label on each page 从服务器创建ZIP文件执行调用 - Create ZIP file from Server.Execute calls 如何在不使用asp.net的会话的情况下将选定的数据(数据列表)从一页转移到另一页? - How to transfer selected data(datalist) from one page to another page without using session in asp.net? 我想将标签输出从一个页面转移到 aspx/aspx.cs 中的另一个页面 - I want to transfer the label output from one page to another page in aspx/aspx.cs 如何将server.transfer转移到一页,然后将server.transfer转移回原始页面 - How can I server.transfer to one page and then server.transfer back to the original
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM