Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one textbox as follows;
Faculty Code textbox.

in that when i run and type the number in Faculty Code, that time shows the pop up message,please type charcters only in Faculty Code.

for that how can i validate using csharp.

Please help me.

Thanks & Regards,

Narasiman P
Posted
Comments
Sumit_Kumar_Sinha 18-Feb-13 3:55am    
For this you can use Ajax Toolkit Control Filtered Textbox
Kishor Deshpande 18-Feb-13 4:13am    
Specify whether it is asp.net or winform application..

You can simply use regex validation with the regex beeing: ^[a-zA-Z]+$

Check this link for more info:
http://msdn.microsoft.com/en-us/library/ms996428.aspx[^]

Good luck!
 
Share this answer
 
Comments
[no name] 18-Feb-13 4:13am    
note it is a window appliction.

for that how to validate,in the Faculty code only type charcters not allow number.


i am using windows application.

for that how can i do using csharp.
Faisalabadians 18-Feb-13 4:24am    
work on keyup or keydown event.
E.F. Nijboer 18-Feb-13 4:57am    
Have you checked the link? It is about windows forms application.

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