ValidationSummary显示一行上的所有错误

时间:2010-12-29 21:20:16

标签: asp.net validation

这是我的代码:

    <asp:ValidationSummary  ShowSummary="true" ID="ValidationSummary1" ValidationGroup="x" runat="server" />
<asp:RequiredFieldValidator  ValidationGroup="x" ControlToValidate="ddlIso" ID="RequiredFieldValidator2" runat="server"   Display="none"  SetFocusOnError="true" ErrorMessage="<br>y is required"/>
<asp:RequiredFieldValidator  ValidationGroup="x" ControlToValidate="txtIsoAct" ID="RequiredFieldValidator3" runat="server"  Display="none" SetFocusOnError="true"  ErrorMessage="<br>y Base Activity is required"/>
<asp:RequiredFieldValidator  ValidationGroup="x" ControlToValidate="txtIsoDate" ID="RequiredFieldValidator4" runat="server"  Display="none" SetFocusOnError="true" ErrorMessage="<br>y Base Activity Date is required"/>

验证摘要在一行显示所有三条消息...如何让它们显示为子弹?

1 个答案:

答案 0 :(得分:1)