Unobtrusive validation doesn't work with Ajax.BeginForm

后端 未结 5 1658
醉梦人生
醉梦人生 2020-12-13 06:58

I have View with Model1 where I put Ajax.BeginForm() and in this View i have PartialView with Model2 where i put Ajax.BeginForm(). So only in first

5条回答
  •  一整个雨季
    2020-12-13 07:22

    You have to add a reference to jquery.unobtrusive-ajax.js to enable the validation within Ajax Form

    Something like this:

    
    

提交回复
热议问题