How can i check whether the text box is numeric or not?
Because i want to do validation.
but i tried many style still cannot work.
gahhon
13
Junior Poster
Recommended Answers
Jump to PostThe isNumeric function is probably the easiest solution. It returns a boolean value indicating whether the input can be parsed to a number.
Jump to PostYou could capture the KeyPress Event of the TextBox and allow the user to only enter what you want. You check the value of the KeyPressEventArgs. I usually use it so I don't have to code the ooops you didn't enter the proper value sub/functions. There is also a nice …
All 6 Replies
hericles
289
Master Poster
Featured Poster
kRod
49
Junior Poster
poojavb
29
Junior Poster
gahhon
13
Junior Poster
kvprajapati
1,826
Posting Genius
Team Colleague
gahhon
13
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.