G
Guest
Hi,
I have a asp:button which allows a user to delete a record, and I wish to
prompt them with a client side confirmation. The javascript confirm
messagebox does show and the cancel button is fine, however when I click OK,
I expect the Server Side Postback OnClick event to fire, but it does not.
Any Ideas?
Here is the code:
<asp:Button ID="BDelete" runat="server" CssClass="buttonRed" Text="Delete"
Width="80px" OnClick="BDelete_Click" UseSubmitBehavior="False"
Visible="False" OnClientClick="return confirm('Delete Work Order?');" />
I have a asp:button which allows a user to delete a record, and I wish to
prompt them with a client side confirmation. The javascript confirm
messagebox does show and the cancel button is fine, however when I click OK,
I expect the Server Side Postback OnClick event to fire, but it does not.
Any Ideas?
Here is the code:
<asp:Button ID="BDelete" runat="server" CssClass="buttonRed" Text="Delete"
Width="80px" OnClick="BDelete_Click" UseSubmitBehavior="False"
Visible="False" OnClientClick="return confirm('Delete Work Order?');" />