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 Add `[Remote(routeName : "name")]` tests 2016-05-03 12:25:00 -07:00
.travis.yml Increase .travis.yml consistency between repos 2016-09-04 20:01:12 -07:00
CONTRIBUTING.md
…
LICENSE.txt
…
Mvc.NoFun.sln Revert "Add Visual Studio specific RC1 binaries." 2016-05-16 11:12:24 -07:00
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 Revert "Add Visual Studio specific RC1 binaries." 2016-05-16 11:12:24 -07:00
README.md Added community project in the README.md 2016-07-05 22:38:06 +03:00
Settings.StyleCop
…
appveyor.yml Fix backslashes in yml config. 2016-03-09 17:44:49 -08:00
build.cmd Return the correct error code from the build script 2016-02-28 11:10:35 -08:00
build.ps1 Update the build scripts to the latest version 2016-03-07 20:55:04 -08:00
build.sh Update the build scripts to the latest version 2016-03-07 20:55:04 -08:00
global.json Repair global.json 2016-03-04 11:26:35 -08:00

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.