Go to file
Doug Bunting eee1a9fef4 Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error
- #5209
- update affected `HtmlHelperValiationSummaryTest` and functional tests
- add `ValidationSummaryTagHelperTest` tests to cover related scenarios

##### Behaviour changes when no errors exist for the model:
###### Tag helper
``` html
<div asp-validation-summary="ModelOnly" class="order"><h3>Oopsie<h3></div>
```
previously generated
``` html
<div class="order validation-summary-errors"><h3>Oopsie</h3><ul><li style="display:none"></li>
</ul></div>
```
and now generates
``` html
<div class="order"><h3>Oopsie</h3></div>
```
###### HTML helper
``` c#
@Html.ValidationSummary(excludePropertyErrors: true, message: "Oopsie")
```
previously generated
``` html
<div class=\"validation-summary-errors\"><span>Oopsie</span>
<ul><li style=\"display:none\"></li>
</ul></div>
```
and now generates nothing (`@HtmlString.Empty`).
2016-09-08 15:36:47 -07:00
samples/MvcSandbox Implement manual state machine 2016-08-01 10:38:46 -07:00
src Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
test Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
tools
.gitattributes
.gitignore
.travis.yml Increase .travis.yml consistency between repos 2016-09-04 20:01:12 -07:00
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln
Mvc.sln Localize DataAnnotations (#5129) 2016-08-16 11:52:15 -07:00
NuGet.config Updating to dotnet.myget.org 2016-08-12 10:15:35 -07:00
NuGetPackageVerifier.json
README.md
Settings.StyleCop
appveyor.yml
build.cmd
build.ps1
build.sh
global.json

README.md

ASP.NET Core MVC

AppVeyor: AppVeyor

Travis: Travis

ASP.NET Core MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET Core MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET Core MVC in ASP.NET Core includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

Related community projects:

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.