D
DrNoose
I'm working on a program using vb in Visual Studios 2005 where I need to
validate a couple of text boxes. One is for a credit card. Most credit
cards have 16 digits and that's what I'd like to set the validation to.
If the user enters less than 16 or more than 16 numbers, they will
receive an error. I think I need to use the Range Validator, but not
sure. If so, what should I set my max and min to?
The other text box is for expiration date. I want the user to enter a
date as mm/dd/yy - ie. 09/09/09. I'm not sure what the regular
expression code should be. I can't find it in any of my books and
haven't really seen anything online that helps. What I have is:
\d{2}-\d{2}-\d{2}, but that's not working.
Any help is appreciated!
Thanks!
validate a couple of text boxes. One is for a credit card. Most credit
cards have 16 digits and that's what I'd like to set the validation to.
If the user enters less than 16 or more than 16 numbers, they will
receive an error. I think I need to use the Range Validator, but not
sure. If so, what should I set my max and min to?
The other text box is for expiration date. I want the user to enter a
date as mm/dd/yy - ie. 09/09/09. I'm not sure what the regular
expression code should be. I can't find it in any of my books and
haven't really seen anything online that helps. What I have is:
\d{2}-\d{2}-\d{2}, but that's not working.
Any help is appreciated!
Thanks!