Ajax Result Not Updating Web Grid Automatically Mvc 4
View Script function AddToBag() { var url = '/Home/Populate_Entitle/'; $.ajax({ url: url, data: { id: 1 }, cache: false,
Solution 1:
Replace your markup with the Data
functionAddToBag() {
var url = "/Home/Populate_Entitle/";
$.ajax({
url: url,
data: { id: 1 },
cache: false,
type: "POST",
success: function (data) {
alert("hi");
$("#gridContent").html(data);
},
error: function (reponse) {
alert("error : " + Json.stringify(reponse));
}
});
}
You are getting data in response, markup is undefined for this criteria
Post a Comment for "Ajax Result Not Updating Web Grid Automatically Mvc 4"