Hi, I used Asp.net core mvc with a metronic template but I have some questions about the model form.
How to make the success alert display after the controller action return success??
Regards,,
Hi,
We are using sweetalert2 dependency to show success alert on form submit.
You can show an alert using the code below:
Swal.fire({
text: "You have successfully logged in!",
icon: "success",
buttonsStyling: false,
confirmButtonText: "Ok, got it!",
customClass: {
confirmButton: "btn btn-primary"
}
})