Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 02, 2008 05:26 PM by PLBlum
0 Points
7 Posts
Jul 01, 2008 05:36 PM|LINK
Hi guys. Currently now I need to do validation for my registration page. I need SG NRIC validation and credit card number validation.
Anyone can suggest how can I do it?
I need to replies asap cos I need to hand in my project before this coming friday.
Thanks guys!
All-Star
30409 Points
5347 Posts
MVP
Jul 02, 2008 05:26 PM|LINK
Here's an article on credit card validation: http://www.codeproject.com/KB/validation/creditcardvalidator.aspx?target=validation
While I don't know how to calculate the checksum of the NRIC, here is a regular expression that may help:
^[SFTG]\d{8}$
Use it with the RegularExpressionValidator.
(Used http://en.wikipedia.org/wiki/National_Registration_Identity_Card as a guide)
CrayRecca
0 Points
7 Posts
Validation for NRIC..
Jul 01, 2008 05:36 PM|LINK
Hi guys. Currently now I need to do validation for my registration page. I need SG NRIC validation and credit card number validation.
Anyone can suggest how can I do it?
I need to replies asap cos I need to hand in my project before this coming friday.
Thanks guys!
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: Validation for NRIC..
Jul 02, 2008 05:26 PM|LINK
Here's an article on credit card validation: http://www.codeproject.com/KB/validation/creditcardvalidator.aspx?target=validation
While I don't know how to calculate the checksum of the NRIC, here is a regular expression that may help:
^[SFTG]\d{8}$
Use it with the RegularExpressionValidator.
(Used http://en.wikipedia.org/wiki/National_Registration_Identity_Card as a guide)
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com