You can use OnClientClick on the button for this. Add confirmation of return (); to him. It will create a javascript confirmation dialog before it fires the click event. If the user clicks no, he will not raise the OnClick event.
OnClientClick="return confirm('Are you sure you want to continue?');"
So, added to the layout of your button, it will look like this:
<asp:Button ID="Button5" runat="server" Text="Signed" Visible="False" onclick="Button5_Click" OnClientClick="return confirm('Are you sure you want to continue?');" />
source share