Unobtrusive validation doesn't work with Ajax.BeginForm

后端 未结 5 1657
醉梦人生
醉梦人生 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:17

    You need to add those 2 files in you Partial View even if it is already in the Shared/_Layout.cshtml:

    
    
    

    Or place this in your Partial:

    
    

提交回复
热议问题