I want to inject a confirmation dialog to allow the user to cancel the click before the postback occurs.
What's the cleanest way?
<asp:LinkButton ID="Btn_RemoveContractPeriod" Text="Remove"
runat="server" OnClick="OnRemoveContractPeriod_Click"/>
I want to inject a confirmation dialog to allow the user to cancel the click before the postback occurs.
What's the cleanest way?
<asp:LinkButton ID="Btn_RemoveContractPeriod" Text="Remove"
runat="server" OnClick="OnRemoveContractPeriod_Click"/>
<asp:LinkButton ID="Btn_RemoveContractPeriod" Text="Remove" runat="server" OnClientClick="return confirm('Message')"/>