Bài đăng

Hiển thị các bài đăng có nhãn To understand how the UpdatePanel work in ASP.NET...

To understand how the UpdatePanel work in ASP.NET...

To understand how the UpdatePanel work in ASP.NET... Basically I put up a file with TWO updatepanels instead protected void Page_Load(object sender, EventArgs e) { ScriptManager1.RegisterAsyncPostBackControl(Button1); lblStatic.Text = DateTime.Now.ToString(); } protected void Button1_Click(object sender, EventArgs e) { Label1.Text = "Panel refreshed at " + DateTime.Now.ToString(); Label2.Text = "Panel refreshed at " + DateTime.Now.ToString(); } protected void Button2_Click(object sender, EventArgs e) { Label1.Text = "Page refreshed."; Label2.Text = "Page refreshed."; } HTML <asp:Label ID="lblStatic" runat="server"></asp:Label> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" > <ContentTemplate> ...