Skip to content

Commit b803f7f

Browse files
docs(common): avoid jquery and validation issues
1 parent 5b6b0ff commit b803f7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

general-information/troubleshooting/jquery-troubleshooting.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ The article contains the following sections:
2626

2727
* [0x800a139e - JavaScript runtime error: SyntaxError](#0x800a139e---javascript-runtime-error-syntaxerror)—this section treats a jQuery runtime error in Visual Stutio output window when the project is started in debug mode in Internet Explorer.
2828

29+
>tip Most of the issues treated in this article stem from the Unobtrusive Validation mode. You can **avoid jQuery and validation problems** with a single line in the web.config that will **disable the Unobtrusive Valudation**.
30+
>
31+
> **web.config**
32+
>
33+
> <appSettings>
34+
> <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
35+
>
36+
2937
## Unobtrusive Validation Basics
3038

3139
**Unobtrusive validation** is a type of validation that makes use of the data - HTML5 attributes and jQuery for validation purposes. It is enabled by default for all .NET 4.5 projects and it requires a jQuery library that is registered with the ScriptManager as **jquery**. You can easily add this registration by installing the [AspNet.ScriptManager.jQuery NuGet package](https://www.nuget.org/packages/AspNet.ScriptManager.jQuery/).

0 commit comments

Comments
 (0)