Hi
Partial View
@using (Html.BeginForm("CreateEdit", "Location", FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
}
Js File
$('body').on('click', '[id*=btnAdd]', function () {
$("#hfAU").val("A");
$.get("/Location/CreateEdit?Id=" + Id, function (data) {
$("#divData").html(data);
$("#UpSertModal").modal('show');
});
});
Index file
Thanks

Sachin SinghRank #66 · 26.2K reputationPosted Jun 20, 2021, 11:56 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jun 20, 2021, 9:55 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 20, 2021, 11:39 AM EDT