Hi friends...
i have a question about validation controls that whenever we using any validation controls in our web application an error comes "UnobtrusiveValidationMode".
Why this error comes ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh MaruthiPosted Aug 7, 2014, 6:09 PM
Specifies how ASP.NET globally enables the built-in validator controls to use unobtrusive JavaScript for client-side validation logic.
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:
Vikram AgrawalPosted Aug 7, 2014, 2:49 PM
thanks to all.
actually i have solution to solve this problem but my question is that why this error came when we used any validation controls.
i am asking about the reason.
Ankur JainPosted Aug 6, 2014, 11:54 PM
take a look at this thread,it will help you....
http://www.c-sharpcorner.com/UploadFile/cd7c2e/enabling-unobtrusive-validation-mode-in-Asp-Net-4-5/
if its useful please don't forget to mark it answer...
Abhay ShankerPosted Aug 6, 2014, 10:23 PM
<configuration>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None">add>
appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
system.web>
configuration>
Guest UserPosted Aug 6, 2014, 9:21 PM
remove it or set value="None"