Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 03, 2012 08:02 AM by Catherine Shan - MSFT
Nov 27, 2012 10:01 PM|LINK
In regular mode in IE, having a regular expression validator's display set to dynamic, it doesn't show unless it is triggered for invalid data. But in compatibility mode it creates a couple of blank spaces where it is being hidden. How can I get it to hide
completely and only show when it is triggered for invalid data?
Nov 28, 2012 02:22 AM|LINK
Dec 03, 2012 08:02 AM|LINK
I am a little confused about your purpose. I have tried to reproduce your issue as follows:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
ID="RegularExpressionValidator1" ControlToValidate="TextBox1" Display="Dynamic"
runat="server" ErrorMessage="please enter correct email address"></asp:RegularExpressionValidator>
<asp:Button ID="Button1" runat="server" Text="Button" />
When I enter firstname.lastname@example.org, it will works well under regular mode and compatibility mode in IE. When I add some black spaces before it, the validation will not fail under two modes in IE. Please test.
If I misunderstood you meaning, please correct me.