,
, - , , "Suspend()"
:
function Suspend()
{
swal({ title: "Are you sure?",
text: "You will not be able to recover this imaginary file!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false
},
function(){
swal("Deleted!", "Your imaginary file has been deleted.", "success");
});
}
.aspx/.cshtml "onClick()"
:
<input type="submit" value="Suspend" onclick='return Suspend();' title="Suspend" />