Request.IsAjaxRequest never returns true in MVC3

后端 未结 5 584
眼角桃花
眼角桃花 2021-01-15 14:22

I am using Asp.net MVC3 and trying to do a simple Ajax post to the server which returns a partial view and updates my list of items during a search.

    @usi         


        
5条回答
  •  渐次进展
    2021-01-15 14:53

    Make sure that the jquery.unobtrusive.ajax.js / jquery.unobtrusive.ajax.min.js script file is referenced after the other jquery script files, also make sure that you dont reference the file more than once per page and you should be sorted

提交回复
热议问题