Click here to Skip to main content
12,622,568 members (32,649 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
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

Posted 10-Oct-12 3:30am
aspnet_regiis -i 10-Oct-12 8:52am
Have you heard of numeric validator in ?
Wes101 10-Oct-12 8:54am
No I've only been coding in asp for 6 weeks
Milind Thakkar 10-Oct-12 8:57am
Or you can use regular expression on Key Press event
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

I would prefer Masked Textbox for it: Enhanced Textbox Control[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

here is an example:

Text box to accept only number[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 10 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100