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?
When I enter catherine@163.com, 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.
Best wishes,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
JAYHAWKER
Participant
1252 Points
1896 Posts
How can I get a regularexpressionValidator to not take up space in compatibility mode?
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?
thava
Member
53 Points
24 Posts
Re: How can I get a regularexpressionValidator to not take up space in compatibility mode?
Nov 28, 2012 02:22 AM|LINK
Hi,
Ref:
http://stackoverflow.com/questions/1824403/asp-net-regular-expression-validator-client-side-script-error
Catherine Sh...
All-Star
23372 Points
2490 Posts
Microsoft
Re: How can I get a regularexpressionValidator to not take up space in compatibility mode?
Dec 03, 2012 08:02 AM|LINK
Hi,
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> <asp:RegularExpressionValidator ValidationExpression="^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$" 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 catherine@163.com, 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.
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store