skip to Main Content

Update Panel is not working for button click, it reload page when click on button in asp.net

<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="updatePanel2" runat="server" ChildrenAsTriggers="true"> <ContentTemplate> <asp:Button ID="btnBlock" Text="BlockCalls" runat="server" OnClick="btnBlock_Click" Enabled="True" Width="100px" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnBlock" EventName="Click" /> </Triggers> </asp:UpdatePanel> When i click on btnBlock pageload even fires. I don't want page refresh when user…

VIEW QUESTION
Back To Top
Search