MVC3 Unobtrusive Validation Not Working after Ajax Call

后端 未结 5 719
既然无缘
既然无缘 2020-12-04 08:03

Ok, here is the deal, I have seen a few posts on SO relating to this issue, but nothing is working for me.

Basically, I have select drop downs that are being load

5条回答
  •  遥遥无期
    2020-12-04 08:43

    Another option, rather trick, which worked for me. Just add following line in the beginning of the partial view which is being returned by ajax call

    this.ViewContext.FormContext = new FormContext(); 
    

    Reference

提交回复
热议问题