Hi Team,
To Load the partial view in MVC5 i was using Ajax.ActionLink , But in MVC core 2.0, i couldnt load the @Ajax object itself.
error in the screen shot below:
How i can achieve it in Core?
My scenario will be there will be rows in the grid.
In each row there will be a button (Approve), on the click of the Approve button i have to replace the Approve button with text box (Approval Date) and Submit button.
on click of submit button, i have to replace the full div which has (Text box and Submit button) with Label ie. Submitted Successfully.
<div id="Dashboard_1">@Ajax.ActionLink(
"Approve", "ClassBookingResult", "Educator",
new { ClassID = item.ClassID},
new AjaxOptions
{
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "Dashboard_1"
},
new { @class = "btn btn-success" })
</div>