I am able to get the alerts for isConfirm both true and false in sweet alert but unable to pass the same to btnSave to call btnSave_Click method in codebehind. Please help. Usin
Please try below changes in your code
and in Script of sweet alert
function (isConfirm) { if (isConfirm) { return true; // alert("true"); // $(this).trigger('click'); $("#<%= btnSave.ClientID %>").trigger('click'); // e.currentTarget.submit(); } else { return false; // alert("False"); } }