Click here to Skip to main content
12,694,842 members (33,143 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
how to give validation in to numeric and string field
Posted 16-Feb-13 0:03am
bandi.ramesh 16-Feb-13 5:05am
where do you need it, server-side or client-side?
Maciej Los 16-Feb-13 5:06am
Please, be more specific and provide more details.
Sandeep Mewara 16-Feb-13 7:07am
Sounds straight forward. What have you tried so far?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Here is an example of one way to test that a string is all numeric:
Dim intNumber as integer=0
Dim strTestString as string = "123456"
    intNumber = CInt(strTestString)
    Throw New System.Exception("Not Numeric")
End Try

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
Web01 | 2.8.170118.1 | Last Updated 17 Feb 2013
Copyright © CodeProject, 1999-2017
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