ASP.NET Core and JQuery unobtrusive AJAX not working

前端 未结 2 954
别那么骄傲
别那么骄傲 2021-02-04 12:19

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.___

2条回答
  •  深忆病人
    2021-02-04 13:19

    What is the equlivalent of OnSuccess

    @using (Ajax.BeginForm("EmployeeMaster", "Home", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "divEmp", OnSuccess="ShowMessage" }))
    {
        //form content
    }
    

提交回复
热议问题