Unfortunately, no, he has nothing of the kind.
I wrote about a workaround when he returned.
ASP.NET MVC - Validation Summary with 2 Forms and 1 View
The essence of the blog post:
namespace System.Web.Mvc { public static class HtmlExtensions { public static string ActionValidationSummary(this HtmlHelper html, string action) { string currentAction = html.ViewContext.RouteData.Values["action"].ToString(); if (currentAction.ToLower() == action.ToLower()) return html.ValidationSummary(); return string.Empty; } } }
and
<h2>Register</h2> <%= Html.ActionValidationSummary("Register") %> <form method="post" id="register-form" action="<%= Html.AttributeEncode(Url.Action("Register")) %>"> ... blah ... </form> <h2>User Login</h2> <%= Html.ActionValidationSummary("LogIn") %> <form method="post" id="login-form" action="<%= Html.AttributeEncode(Url.Action("LogIn")) %>"> ... blah ... </form>
HTHS,
Charles
source share