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 
# 
No data to display

Recently Viewed Widgets 
Price 
# 
No data to display

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