In my case when I click on button confirm-box is called but at the same time server side code executes without confirmation. My code is
function btnApprovePayments()
{
var ans = checkrecordofpayment(); //here returns true or false
if (ans == true) {
bootbox.confirm("Are You Sure To Approve This Payment ?", function (e) {
if(e)
{ return true; }
});
}
}
<asp:Button ID="btn_Approve_Payments" runat="server" Text="Approve" OnClientClick="return btnApprovePayments();" onclick="btn_Approve_Payments_Click" />