You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Third party javascript libraries (jquery-validation, jquery-validation-unobtrusive, ckeditor) added to the project (Client-Side Validation and HTML Editor) aren't working. According to the results of the research, the <environment> tag is used in ASP.NET Core to include third-party scripts in the project. Therefore, I deleted the third party libraries defined as a @section Scripts and added the following usage to the _Layout.cshtml file:
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8">
<metahttp-equiv="X-UA-Compatible"content="IE=edge">
<metaname="viewport"content="width=device-width, initial-scale=1.0">
<linkrel="stylesheet"href="~/modules/bootstrap/dist/css/bootstrap.min.css"crossorigin="anonymous">
<linkrel="stylesheet"href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
<linkrel="stylesheet"href="~/css/style.css">
<!-- Added the following lines of code to the _Layout.cshtml file. -->
<environmentinclude="Development">
<scriptsrc="/modules/jquery-validation/dist/jquery.validate.min.js"crossorigin></script>
<scriptsrc="/modules/jquery-validation-unobtrusive/dist/jquery.validate.unobtrusive.min.js"crossorigin></script>
<scriptsrc="/modules/ckeditor/ckeditor.js"crossorigin></script>
</environment>
<title>Shop Application</title>
</head>
<body>
<!-- Other Lines of Code -->
</body>
</html>
Hi @sadikturan,
Third party javascript libraries (
jquery-validation
,jquery-validation-unobtrusive
,ckeditor
) added to the project (Client-Side Validation and HTML Editor) aren't working. According to the results of the research, the<environment>
tag is used in ASP.NET Core to include third-party scripts in the project. Therefore, I deleted the third party libraries defined as a@section Scripts
and added the following usage to the _Layout.cshtml file:Have a nice day.
Resources
The text was updated successfully, but these errors were encountered: