MVC 4 client side validation not working

后端 未结 21 1315
情话喂你
情话喂你 2020-12-02 14:00

Can anyone tell me why client side validation is not working in my MVC 4 application.

_layout.schtml

@Scripts.Render("~/bundles/jquery")
@R         


        
21条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 14:46

    I'll like to add to this post, that I was experienceing the same issue but in a PartialView.

    And I needed to add

    
    

    To the partial view, even if already present in the _Layout view.

    References:

    • Data Annotations / Validation not working for partial views

提交回复
热议问题