From 8b1f8b97486f50211e340c94a1604c48d4f141e2 Mon Sep 17 00:00:00 2001 From: Henk Mollema Date: Fri, 17 Apr 2015 09:53:22 +0200 Subject: [PATCH] Added new ValidationSummary overloads to sample Overview now shows every possible overload. #1743 --- .../Views/Home/ValidationSummary.cshtml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/samples/MvcSample.Web/Views/Home/ValidationSummary.cshtml b/samples/MvcSample.Web/Views/Home/ValidationSummary.cshtml index d1b888f97f..66e7cc3466 100644 --- a/samples/MvcSample.Web/Views/Home/ValidationSummary.cshtml +++ b/samples/MvcSample.Web/Views/Home/ValidationSummary.cshtml @@ -9,15 +9,18 @@

ValidationSummary Test Page.

-

Below are all overloads for Html.ValidationSummary. You should see 5 validation summary titles and 4 validation summary error messages.

+

Below are all overloads for Html.ValidationSummary. You should see 8 validation summary titles and 4 validation summary error messages.


@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 { { "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 { { "style", "color: blue" } }, tag: "h2")
\ No newline at end of file