开发者

ValidationSummary shows all errors on one line

here is my code:

    <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"/>

Validation Summarys hows all three messages on one line... how can i get them to show up as bullets?


Use the DisplayMode property:

http://msdn.microsoft.com/en-us/library/dd5c6s6h%28v=vs.71%29.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜