|
|
Question : Call javascript function when reguular expression validator on the textbox fails!
|
|
|
|
hi, i have a text box, on which i need to fire a javascript function as soon as the Regular expression validator on it fails: the code is here, i tried onpropertychange but it works only on IE i need it to work on Firefox as well.Please advise <td align="left"><asp:TextBox id="TextBoxUserName" runat="server" Columns="32" Width="200"></dsf:TextBox></td> <td align="left"><asp:RequiredFieldValidator id="RequiredFieldValidatorUserName" runat="server" ForeColor=" " ControlToValidate="TextBoxUserName" Display="Dynamic"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="verifyXssUserNameCharacter" ControlToValidate="TextBoxUserName" ErrorMessage="##Error" ValidationExpression="^[^<>]+$" runat="server" CssClass="textRed" ></asp:RegularExpressionValidator></td>
|
|
|
|
Answer : Call javascript function when reguular expression validator on the textbox fails!
|
|
|
|
|
|
|
|
|