Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one of my page I use regular expression validation for DDL's. Though it works fine with 'Show messageBox=true' it also displays the same error message outside the message box. Hereunder is my code:

XML
<asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server"
            ControlToValidate="DropDownList8" ErrorMessage="Select Scheme"
            style="" ValidationExpression="[a-z0-9_]{1,45}" Font-Size="X-Small"></asp:RegularExpressionValidator>


VB
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
            ShowMessageBox="True"  ShowSummary="false" />


Can anyone help me out?
Posted

1 solution

Set Text="*" in RegularExpressionValidator.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900