Link to home
Start Free TrialLog in
Avatar of crickpaolo
crickpaolo

asked on

How do I validate the value of a textbox from 0000 thru 9999 on the server side via VB.NET?

I need to validate if a textbox's value is between 0000 thru 9999 (with padded zeroes).  I have to implement it on the server side using VB.NET code.

How can I do this?
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of crickpaolo
crickpaolo

ASKER

thanks man.
make sure that your text box takes maximum input of 4 characters that also only numbers and no special characters alphabets and space or a dot
i will suggest you to do the first level of test by using a regularexpression validator then only verify again at the server side - why do you want to do a round trip for this kind of verification which can be easily done on the client side by regularexpression validator and the expression will be whats defined by TimCottee in the previous comment