Html.ValidationSummary(false, “message”) is always showing, even on page load

前端 未结 3 1237
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 06:34

I am using client side validation and I would like the message below to show only when I have an error. I am trying to use this a general error in case any field is invalid.

3条回答
  •  情书的邮戳
    2020-12-05 06:55

    I think the issue is the fact the Html.ValidationSummary has to appear before the Html.BeginForm otherwise the message is always displayed.

提交回复
热议问题