私はMVCアプリケーションを使用しています。
私のコードは次のようになっています:-
if(//there are errors then display validation summary)
{
<div class="error">@Html.ValidationSummary(true, "There was an error!")<div>
}
@using (Html.BeginForm("FoundSimilarAccounts", "Account", FormMethod.Post, new { id = "contactform" }))
{
}
if条件が何であるかを知りたいだけです。エラーになる場合、または検証の概要に何かがある場合にのみ表示したいと思います。
ありがとう