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
<asp:Button ID="btnSave" CssClass="buttons___" runat="server" Font-Size="9pt" Text="Save Project"
OnClick="btnSave_Click" OnClientClick="return Confirm(this, event);"/>
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");
}
}