Click here to Skip to main content
15,883,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to check whole string is number or not and also check whole string has special character or not.plz help me?
Posted
Comments
what have you tried?
kishore sharma 14-Aug-13 6:53am    
please add which language,you are using c#,vb.net,jquery..etc

 
Share this answer
 
C#
<asp:textbox id="VisitorContacttxt" runat="server" cssclass="TextBox" maxlength="10" xmlns:asp="#unknown"></asp:textbox>
<asp:filteredtextboxextender id="VisitorContacttxt_FilteredTextBoxExtender" runat="server" xmlns:asp="#unknown">
 FilterMode="ValidChars" FilterType="Numbers" TargetControlID="VisitorContacttxt">
</asp:filteredtextboxextender>

Use filteredtextboxextender for enter number or symbol
 
Share this answer
 
v2
use Regular Expression validator....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900