LoginRegister
view source is as follows:
@Html.Partial("authentication/_login") @Html.Partial("authentication/_register")
and each child view has a form with this syntax
@using (Html.BeginForm(**seperated-methods**, "Login")) { @Html.ValidationSummary(false) }
I am sending errors (s) in postback whit this code
ModelState.AddModelError("", "**any-error-message**"); return View("authentication/LoginRegister", customized-data);
Point, error message is displayed as in partial views
.
source share