扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:子夜 来源:天极网 2007年10月17日
关键字:
// Session Created Session["Name"] = txtName.Text; Response.Redirect("WebForm5.aspx"); // The code below shows how to get the session value. // This code must be placed in other page. if(Session["Name"] != null) Label3.Text = Session["Name"].ToString(); Application Variables |
// This sets the value of the Application Variable Application["Name"] = txtName.Text; Response.Redirect("WebForm5.aspx"); // This is how we retrieve the value of the Application Variable if( Application["Name"] != null ) Label3.Text = Application["Name"].ToString(); |
public string GetName { get { return txtName.Text; } } |
Server.Transfer("WebForm5.aspx"); |
// You can declare this Globally or in any event you like WebForm4 w; // Gets the Page.Context which is Associated with this page w = (WebForm4)Context.Handler; // Assign the Label control with the property "GetName" which returns string Label3.Text = w.GetName; Special Note |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者