日期:2014-05-18 浏览次数:20358 次
protected void Page_Load(object sender, EventArgs e) { this.ScriptManager1.RegisterAsyncPostBackControl(this.Button1); if(Page.Application["Message"] != null) this.Label1.Text = Page.Application["Message"].ToString(); } protected void Button1_Click1(object sender, EventArgs e) { this.Label1.Text += this.TextBox1.Text; Page.Application["Message"] = this.Label1.Text; this.UpdatePanel1.UpdateMode = UpdatePanelUpdateMode.Conditional; this.UpdatePanel1.Update(); }