Request.IsAjaxRequest never returns true in MVC3

后端 未结 5 589
眼角桃花
眼角桃花 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:58

    I stumbled on the similar situation where IsAjaxRequest() didn't work. I made sure Microsoft unobtrusive package is included. It still didn't help. Just upgraded to the latest version of unobtrusive library from package manager and it worked!

提交回复
热议问题