MVC 3 Razor - Ajax.BeginForm OnSuccess

后端 未结 4 1795
忘了有多久
忘了有多久 2020-12-21 06:00

I\'m new to MVC and I\'m trying to update my page after I submit my form; but it\'s not working. I\'m only trying to hide the form, and show the contents of a div OnSuccess

4条回答
  •  长情又很酷
    2020-12-21 06:37

    Make sure you can get to your action method. Also add a failure handler and see if its returning a failure too.

    The unobtrusive features must be enabled too, and you must add in the MVC unobtrusive AJAX scripts for MVC 3 and razor.

    HTH.

提交回复
热议问题