ASP.Net 2012 Unobtrusive Validation with jQuery

后端 未结 12 1560
小蘑菇
小蘑菇 2020-11-27 04:11

I was playing with Visual Studio 2012 and I created an empty ASP.Net Web Application, when I tried to add the traditional validator controls to a n

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 04:27

    More Info on ValidationSettings:UnobtrusiveValidationMode

    Specifies how ASP.NET globally enables the built-in validator controls to use unobtrusive JavaScript for client-side validation logic.

    Type: UnobtrusiveValidationMode

    Default value: None

    Remarks: If this key value is set to "None" [default], the ASP.NET application will use the pre-4.5 behavior (JavaScript inline in the pages) for client-side validation logic. If this key value is set to "WebForms", ASP.NET uses HTML5 data-attributes and late bound JavaScript from an added script reference for client-side validation logic.

    Example:

        
          
        
    

提交回复
热议问题