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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Aug 6, 2014, 5:21 PM EDT
remove it or set value="None"
Abhay ShankerRank #375 · 6.7K reputationPosted Aug 6, 2014, 6:23 PM EDT
<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>
Ankur JainRank #2,475 · 567 reputationPosted Aug 6, 2014, 7:54 PM EDT
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...
Vikram AgrawalRank #4,713 · 329 reputationPosted Aug 7, 2014, 10:49 AM EDT
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.
Ramesh MaruthiRank #937 · 2.2K reputationPosted Aug 7, 2014, 2:09 PM EDT
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: