9.3.6 Displaying Validation Errors; Listing 9-20 The Contents of the ErrorStyles.css File

chap09
Jason Zhu 2021-09-22 16:24:00 +10:00
parent f4146a6c0f
commit ba2f003e49
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
.field-validation-error     {
color: #f00;
}
.field-validation-valid     {
display: none;
}
.input-validation-error     {
border: 1px solid #f00;
background-color: #fee;
}
.validation-summary-errors {
font-weight: bold;
color: #f00;
}
.validation-summary-valid   {
display: none;
}

View File

@ -114,6 +114,7 @@
<Content Include="Content\bootstrap-theme.min.css" /> <Content Include="Content\bootstrap-theme.min.css" />
<Content Include="Content\bootstrap.css" /> <Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" /> <Content Include="Content\bootstrap.min.css" />
<Content Include="Content\ErrorStyles.css" />
<Content Include="Content\Site.css" /> <Content Include="Content\Site.css" />
<Content Include="fonts\glyphicons-halflings-regular.svg" /> <Content Include="fonts\glyphicons-halflings-regular.svg" />
<Content Include="Global.asax" /> <Content Include="Global.asax" />