This markup
<asp:TextBox ID="TextBoxTelefoneHome" runat="server" CssClass="RequiredInput" Width="17em"></asp:TextBox><cc1:maskededitextender id="MaskedEditExtenderTelephoneHome" runat="server" clearmaskonlostfocus="false"mask="(99) 99999999" targetcontrolid="TextBoxTelefoneHome"></cc1:maskededitextender><cc1:maskededitvalidator id="MaskedEditValidatorTelHome" runat="server" controlextender="MaskedEditExtenderTelephoneHome"controltovalidate="TextBoxTelefoneHome" emptyvaluemessage="Obrigatório" invalidvaluemessage="Inválido"isvalidempty="False" validationexpression="[(]\d{2}[)]\s\d{7}[_\d]"></cc1:maskededitvalidator><asp:Button ID="Button1" runat="server" Text="Button" />
never validates, which it should.
the same with "[(]\d{2}[)]\s\d{7-8}", it seems that only ".+" evaluates. I have no idea how to bring this to work, looks buggish.
Worse still, the page posts back, even when there are (real or not) invalid entries.
Anyone got an idea?
Thanks, Jan
I gave a try to your snippet and it worked every single time. although, the reg expression below the snippet didn't. I wonder if it is because i updated my toolkit dll yesterday, maybe it is a bug that was fixed!
Hi, thanks a lot!
I just did the upgrade and it does not post back anymore. That's a certain relief, but the regex still evaluates incorrectly
For a value "(11) 1234567_" or "(11) 12345678" which should be ok, I both receive an Invalid.
Hmm. I centuplechecked the regex "[(]\d{2}[)]\s\d{7}[_\d]" and it should not be to blame.
Anyone who could help me a bit further?
Jan
your regex is good, it has to be coming from somewhere ele, since it is working on my side. Try to coppy the snippets you provided me with , and use it in a brand new created page. This is one of the issues that makes you pull your hair on your head...,
I hope that you will find a solution.!