这是我的代码:
<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"/>
验证摘要在一行显示所有三条消息...如何让它们显示为子弹?
答案 0 :(得分:1)
使用DisplayMode属性:
http://msdn.microsoft.com/en-us/library/dd5c6s6h%28v=vs.71%29.aspx