Skip to content
| Marketplace
Sign in
Visual Studio>Controls>MicroApplications Lightswitch Business Types
MicroApplications Lightswitch Business Types

MicroApplications Lightswitch Business Types

bbakermai

|
1,036 installs
| (0) | Free
Social Security Number, Canadian Social Insurance Number, and Credit Card Number Business Types for Visual Studio Lightswitch 2011
Download

This extension consists of three custom LightSwitch business types:

  • a Social Security Number type (with or without dashes/spaces)
  • a Canadian Social Insurance Number type (spaces required)
  • a Credit Card Number type (that supports validation of all major credit cards and their checksums, with or without dashes/spaces)

Please note that the extension uploaded here isnot digitally signed. Attempting to upload the digitally signed version of thi sextension produced thewell-documented 'Path may be too long in VSIX' error. If you would like a digitally signed version, please clickhere (a direct link to the .vsix file on the MicroApplications, Inc. web site).

If you feel that you've benefited significantly from any of these business types, pleaseconsider making a donation to help cover the cost of developing them. I'd prefer to let people decide the extension is worth something to them (saving time, impressing bosses/clients, etc.), rather than just setting a fixed price.


Donations will help to ensure that extensions can continue to be created for the benefit of the LightSwitch community.

Social Security Number business type:

  • can be selected for any string property
  • validates according to published standards for length and area, group and serial number

Canadian Social Insurance Number business type:

  • can be selected for any string property
  • validates for both format and checksum

Credit Card Number business type:

  • can be selected for any string property
  • validates according to published standards for prefix and length for all major credit cards plus Luhn checksum as follows:

Card Type                  Prefix                                Width
American Express        34,37                               15

Diners Club                 36                                    14
Carte Blanche             300-305                            14
Discover                     6011,622, 644-649, 65       16
JCB                            35                                     16
JCB                            2131,1800                         15
Master Card                51 to 55                            16
Visa                           4                                       13, 16

If you do decide to download this extension, please remember to come back and write a quick review. Tell me whether you liked it or not, and why. If you have any suggestions, or ways to improve these controls, please don’t hesitate to share them.

Version History:

  • Version 1.0
    • added Social Security Number type
    • added Social Insurance Number type
    • added Credit Card Number type
  • Version 1.1
    • fixed control images not showing for editors/viewers
    • added additional credit cards and more informative validation error messages for Social Security Number
  • Version 1.2
    • fixed a bug with the rarely seen 13-digit Visa card
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft