If I start a new project in .net 4.5 and hit manage nuget packages, search for ajax, then hit install for ajax unobtrusive. I can then go into my cshtml file and type @Ajax.___ e.g. @Ajax.beginForm
If I create a new project with Dot Net Core... I cannot, where instead it gives me the useless error:
"The name 'Ajax' does not exist in the current context"
I've searched the web, found nothing...
Basically I want to make a Form with an Ajax call as you could do in .net
Such as:
"@using (Ajax.BeginForm("EmployeeMaster", "Home", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "divEmp" })) {
"
Anyone know what else I can try?
In the above, I can see that Ajax is a object of type AjaxHelper which comes from System.web.mvc.webviewpage... so maybe its never meant to be available for .net core