我正在尝试将RegularExpressionValidator与Telerik RadMaskedTextBox一起使用,但它无法正常工作。验证器在常规TextBox上工作正常,但它不会在RadMaskedTextBox上激活。谁能告诉我这是不可能的?或者有办法使它工作?感谢
<telerik:RadMaskedTextBox ID="txtFederalTaxID" runat="server" Mask="##-#######" CssClass="field" SelectionOnFocus="SelectAll" RequireCompleteText="true">
</telerik:RadMaskedTextBox>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ErrorMessage="*" ControlToValidate="txtFederalTaxID" InitialValue="" ValidationGroup="Terms"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtFederalTaxID" runat="server" ValidationExpression="(?=\d+)(?!876543210|987654321|012345678|123456789)(?!0{9}|1{9}|2{9}|3{9}|4{9}|5{9}|6{9}|7{9}|8{9}|9{9}).{9}" ErrorMessage="Invalid!" Width="20px"></asp:RegularExpressionValidator>