Hi
WIth the belw code row gets deleted .
Line - Showing 1-8 of 8 this value does not get updated
function Delete() {
var Id = $("#hiddenId").val().replace(/\r?\n|\r/g, "").trim();
$.ajax({
url: "/Location/Delete",
data: { Id: Id },
type: "POST",
dataType: "json",
success: function (result) {
//$("#row_" + Id).remove();
$('#DeleteModal').modal('hide');
},
error: function (errormessage) {
alert(errormessage.responseText);
}
});
}
*******
@Html.DisplayNameFor(model => model.Id) | @Html.DisplayNameFor(model => model.Description) | @Html.DisplayNameFor(model => model.IsActive) | Action |
|---|---|---|---|
@Html.DisplayFor(modelItem => item.Id) | @Html.DisplayFor(modelItem => item.Description) | @Html.DisplayFor(modelItem => item.IsActive) |
Rajendran SPosted Jun 5, 2021, 12:40 PM