Also hier ist der Code. < /p>
JavaScript < /strong> < /p>
Code: Select all
function Confirm(ctl, event) {
event.preventDefault();
swal({
title: "Confirm Logout?",
text: "Do you really want to log this Account out?",
type: "warning",
showCancelButton: true,
closeOnConfirm: true,
closeOnCancel: true
},
function (isConfirm) {
if (isConfirm) {
return true;
} else {
return false;
}
});
}
< /code>
Aspx < /strong> < /p>
[*]
[i][/i]
< /code>
C#< /strong> < /p>
protected void btnLogout_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("login.aspx");
}