ASP.NET MVC 3 RC 2 client side validation with globalization

前端 未结 2 1969
后悔当初
后悔当初 2021-02-03 10:53

My goal is to validate a user input on the client-side, depending on the users\' culture.

I have a primitive data-model with the following structure:

pub         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-03 11:09

    I had to disable the UnobtrusiveJavaScript. The page does not react instantly anymore, but at least it works.

    You can disable by default in the Web.Config.

    
        
        
        
     
    

    And I use the Microsoft scripts for validation:

    MicrosoftAjax.js
    MicrosoftMvcAjax.js
    MicrosoftMvcValidation.js
    

    And also the jquery-1.4.4.min.js & jquery.glob thing, but I think I use them internally. The validation is being done by the MS scripts.

提交回复
热议问题