Author: Sniper1983 | Posted on: 11/17/2009 6:53:30 AM | Views : 429

I have a page with a maskedEditValidator the ValidationExpression keeps throwing errors on postbacks. It says that ")" is missing in Regular expression.
My regular expression is "^(20|21|22|23|[01]\d|\d)(([:][0-5]\d){1,2})$". When I look at the source it rewrites the regular to "^(20|21|22|23|[01]\\d|\\d)(([:][0-5]\\d){1,2})$"..
 the code looks like follows:
<asp:TextBox ID="tbStartTime" runat="server" Width="35px" CausesValidation="True" ToolTip="Tid (tt:mm)"></asp:TextBox> <cc1:MaskedEditExtender ID="MaskedEditExtenderStartTime" runat="server" TargetControlID="tbStartTime" MaskType="Time" UserTimeFormat="TwentyFourHour" OnInvalidCssClass="ErrorTB" OnFocusCssClass="S ...

Go to the complete details ...