I have 2 forms on a page as follows:
@using (Html.BeginForm())
{
@Html.ValidationSummary()
@Html.Label("code", "Confirmation Code")
@Html.TextBox("code")
<input type="submit" value="Go" />
}
@using (Html.BeginForm("SendConfirmation", "Auth"))
{
@Html.ValidationSummary()
@Html.Label("email", "Email")
@Html.TextBox("email")
<input type="submit" value="Resend" />
}
If SendConfirmation
throws an error, there are 2 validation summary being displayed. How do I get the validation summary to target its own?