I have a linkButton that is disabled via server, like this:
lkExcluir.Enabled = false;
Code:
<asp:LinkButton ID="lkExcluir" runat="server" Text="[Excluir]" Font-Bold="true" OnClick="lkExcluir_Click" OnClientClick="return confirm('Tem certeza que deseja excluir');"></asp:LinkButton>
If I click the unchecked button, the message Are you sure you want to delete if ok is displayed, the lkExcluir_Click
event is displayed, what should I do to not display the message and therefore does not trigger the event?