CodeWidgets.com: Online Source Code Library: C#, ASP, ASP.NET, VB, VB.NET, VB Script, Microsoft Access, Excel, JavaScript, J Script, XML, VBScript, Website Design, DevExpress Components, Reporting, Application and Website Templates.

Widget #CS0094

Canadian Validation Expressions: Postal Code, S.I.N

Free

Using the RegularExpressionValidator Control for ASP.NET with Canadian value formatting.

Canadian Postal Code: OXO XOX
    ValidationExpression="[A-Z]\d[A-Z]\s\d[A-Z]\d"

Canadian S.I.N: XXX XXX XXX (with Spaces)
    ValidationExpression="\d{3}\s\d{3}\s\d{3}"

Canadian S.I.N: XXX-XXX-XXX (with Dashes)
    ValidationExpression="\\d{3}-\d{3}-\d{3}"

Last Updated: 4/8/2018


Related Widgets 
Price 
# 
CS0040 Add Sounds to button events. ASP.NET$0.00Add To Cart

Recently Viewed Widgets 
Price 
# 
CS0094: Canadian Validation Expressions: Postal Code, S.I.N$0.00Add To Cart

Collapse/Expand
Format

Plug & Play Code

Copy the Source Code Above..


Collapse/Expand
License

License

No Restrictions

Re-Distribution Permitted
This source code is provided to you "as is" without warranty
CLICK HERE FOR TERMS OF USE
Copyright 2000-2006 Comrie Software Solutions


This website uses Cookies to store User information and Shopping Cart Items for the duration of your visit to CodeWidgets.com.

No Credit Card or Financial information is stored by CodeWidgets.com. Click Here For Our Complete Privacy Policy and Terms of Use.

I Understand