Assign a Javascript function to AjaxOptions OnSuccess property raise an error - ASP.NET MVC

前端 未结 3 2036
独厮守ぢ
独厮守ぢ 2021-01-11 18:28

I\'m using the Ajax.ActionLink helper to generate a link to delete a record. This is the code:

Ajax.ActionLink(\"Delete Image\", \"DeleteImage\", new { id =          


        
3条回答
  •  渐次进展
    2021-01-11 19:25

    OnSuccess = "Test()" 
    

    you have to write it like this it is a callback...

    OnSuccess = "Test"
    

提交回复
热议问题