<div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Label Text="text" runat="server" ID="lblDisplay1" /> <asp:Button Text="Submit1" runat="server" ID="btnSubmit1" OnClick="btnSubmit1_Click" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:Label Text="text" runat="server" ID="lblDisplay2" /> <asp:Button Text="Submit2" runat="server" ID="btnSubmit2" OnClick="btnSubmit2_Click" /> </ContentTemplate> </asp:UpdatePanel> </div>
protected void btnSubmit1_Click(object sender, EventArgs e) { lblDisplay1.Text = "Updatepanel1 Called"; } protected void btnSubmit2_Click(object sender, EventArgs e) { lblDisplay2.Text = "Updatepanel2 Called"; }
Thank you, Govind
Login to post response