Ajax.BeginForm doesn't call onSuccess

后端 未结 4 947
傲寒
傲寒 2021-01-05 20:01

In ASP.NET MVC 3 application I use Ajax.BeginForm to post writed text to controller.

@using (Ajax.BeginForm(\"Post\", \"Forum\", new {threadId = Model.Thread         


        
4条回答
  •  一整个雨季
    2021-01-05 20:50

    Make sure you have included the following script to your page:

    
    

    and that you have enabled unobtrusive javascript in your web.config:

    
    

    This is what makes Ajax.* helpers such as Ajax.BeginForm to work.

提交回复
热议问题