Click here to Skip to main content
15,905,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, as the question states, im stuck on trying to make my text box's numeric I got 5 text box's that should only allow numbers no letters please help

Wes
Posted
Comments
bbirajdar 10-Oct-12 8:52am    
Have you heard of numeric validator in asp.net ?
Wes101 10-Oct-12 8:54am    
No I've only been coding in asp for 6 weeks
MT_ 10-Oct-12 8:57am    
Or you can use regular expression on Key Press event

There are ways to make this happen, using regular expression, JavaScript validation, etc.

I would prefer Masked Textbox for it: Enhanced Textbox Control[^]
 
Share this answer
 
here is an example:

Text box to accept only number[^]
 
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