I have create a page .cshtml with name(ThankYouPage.cshtml).I want to how to redirect after success ajax.
this is my code
$.ajax({
url: '/Utility/SendMail',
type: "GET",
data: record,
contentType: "application/json; charset=utf-8",
success: function () {
toastr.options.timeOut = 5000;
toastr.success("Query Send Successfully");
$("#form")[0].reset();
window.location.href = "@Url.Action("ThankYouPage.cshtml")";
It's not working .Please let me know how it working.
Sachin SinghPosted Apr 28, 2021, 8:00 AM
Shubham ChaudhariPosted Apr 28, 2021, 1:53 PM
Kapil GaurPosted Apr 28, 2021, 8:13 AM