Lack of a class definition for an “input-validation error” inside the new asp.net mvc-5 web application

I created a new asp.net mvc-5 web application using VS 2013. now that I try to embed the login form and I leave the required fields blank, I got the following: -

enter image description here

where both fields were not highlighted in red, as I use to get into previous versions of asp.net mvc. now from the generated markup I can verify that any field with validation errors will have the following class: -

input-validation-error

css, - asp.net mvc-5; site.css, bootstrap.css bootstrap.min.css, -?? - , , , , asp.net mvc-5?

+4
1

asp.net mvc-5

ASP.NET MVC 5. css Site.css.

.field-validation-error {
    color: #e80c4d;
    font-weight: bold;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #e80c4d;
}

.validation-summary-errors {
    color: #e80c4d;
    font-weight: bold;
    font-size: 1.1em;
}

.validation-summary-valid {
    display: none;
}
+5

Source: https://habr.com/ru/post/1614163/


All Articles