Why does Ajax.BeginForm replace my whole page?

后端 未结 6 1191
遇见更好的自我
遇见更好的自我 2020-12-16 09:47

Context: Asp.Net MVC3 w/Razor

I am trying to put a login form on a Razor layout (formerly master page) so that, when the user times out, s/he can be prompted to log

6条回答
  •  离开以前
    2020-12-16 10:05

    I had the same problem and solution was:

    • Check that UnobtrusiveJavaScriptEnabled is true.
    • Add reference to jquery.unobtrusive-ajax.js as Darin adviced.

    Unfortunatelly, it will not help for you because you set UnobtrusiveJavaScriptEnabled to false, but can help for somebody.

提交回复
热议问题