I have this button:
<asp:Button ID="Button11" runat="server"
Text="Cancelar" CssClass="btn btn-danger btn-block"
OnClick="Button11_Click"
OnClientClick="javascript:return confirm('Deseja cancelar toda a venda?');"
UseSubmitBehavior="False" />
I need it to be UseSubmitBehavior="False"
, but when I put it to false, it does not work confirm
, it appears alert
, however regardless if I click ok or cancel, it does nothing when the UseSubmitBehavior="true"
it works correctly, but if someone clicks the enter, it makes the click of this button
, how can I proceed?