Wednesday, December 28, 2022

To prevent After saving on button click on refresh button saving data - ASP.NET C#

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>            
           <asp:Label ID="Label1" runat="server" Text=""></asp:Label><br />
           <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />      
     </ContentTemplate>
</asp:UpdatePanel>


reference:-  https://www.aspsnippets.com/questions/184293/Prevent-Page-refresh-on-Button-Click-in-ASPNet/

No comments:

Post a Comment