如何在ajaxtoolkit过滤的文本框扩展器中允许使用大写字母,小写字母和空格

时间:2023-01-15 00:09:59

In ajaxtoolkit filtered textbox extender it is not allowing spaces in between characters

在ajaxtoolkit过滤的文本框扩展器中,它不允许在字符之间使用空格

Please give me solution what to put in filterType and validchars

请给我解决在filterType和validchars中放入什么的解决方案

Code

<ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"    
FilterType="LowercaseLetters, UppercaseLetters" ValidChars=" " 
     TargetControlID="txtFirstName" />

1 个解决方案

#1


2  

<ajaxToolkit:FilteredTextBoxExtender 
    ID="FilteredTextBoxExtender2" 
    runat="server"    
    FilterType="LowercaseLetters, UppercaseLetters,Custom" 
    ValidChars=" " 
    TargetControlID="txtFirstName" />

Put "Custom" in Filter Type ,then its working fine

将“Custom”放在Filter Type中,然后它的工作正常

#1


2  

<ajaxToolkit:FilteredTextBoxExtender 
    ID="FilteredTextBoxExtender2" 
    runat="server"    
    FilterType="LowercaseLetters, UppercaseLetters,Custom" 
    ValidChars=" " 
    TargetControlID="txtFirstName" />

Put "Custom" in Filter Type ,then its working fine

将“Custom”放在Filter Type中,然后它的工作正常