Added new ValidationSummary overloads to sample

Overview now shows every possible overload.

#1743
This commit is contained in:
Henk Mollema 2015-04-17 09:53:22 +02:00
parent 13a3c0b931
commit 8b1f8b9748
1 changed files with 9 additions and 6 deletions

View File

@ -9,15 +9,18 @@
</style>
<h1>ValidationSummary Test Page.</h1>
<p>Below are all overloads for Html.ValidationSummary. You should see 5 validation summary titles and 4 validation summary error messages.</p>
<p>Below are all overloads for Html.ValidationSummary. You should see 8 validation summary titles and 4 validation summary error messages.</p>
<br />
<section class="validationSummary">
@Html.ValidationSummary()
@Html.ValidationSummary(excludePropertyErrors: true)
@Html.ValidationSummary(message: "Hello from validation message summary 1.", tag: "h2")
@Html.ValidationSummary(excludePropertyErrors: true, message: "Hello from validation message summary 2")
@Html.ValidationSummary(message: "Hello from validation message summary 3", htmlAttributes: new { style = "color: red" })
@Html.ValidationSummary(excludePropertyErrors: true, message: "Hello from validation message summary 4", htmlAttributes: new { style = "color: green" })
@Html.ValidationSummary(message: "Hello from validation message summary 5", htmlAttributes: new Dictionary<string, object> { { "style", "color: blue" } }, tag: "h1")
@Html.ValidationSummary(message: "Hello from validation message summary 1.")
@Html.ValidationSummary(message: "Hello from validation message summary 2.", tag: "h2")
@Html.ValidationSummary(excludePropertyErrors: true, message: "Hello from validation message summary 3")
@Html.ValidationSummary(message: "Hello from validation message summary 4", htmlAttributes: new { style = "color: red" })
@Html.ValidationSummary(message: "Hello from validation message summary 5", htmlAttributes: new { style = "color: red" }, tag: "h2")
@Html.ValidationSummary(excludePropertyErrors: true, message: "Hello from validation message summary 6", tag: "h2")
@Html.ValidationSummary(excludePropertyErrors: true, message: "Hello from validation message summary 7", htmlAttributes: new { style = "color: green" })
@Html.ValidationSummary(message: "Hello from validation message summary 8", htmlAttributes: new Dictionary<string, object> { { "style", "color: blue" } }, tag: "h2")
</section>