I want to reload page on my json success. Below is my code please give me some idea.
$.ajax({
type: "POST",
url: '@Url.Action("Delete")',
data: '{StudentId: ' + JSON.stringify(std) + '}',
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (response) {
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert('oops, something bad happened')
}
});
Anonymous User
07-Dec-2017Hi Harsh,
Please write following line of code in your success method:
Here is your modified code: