Tags: 73-1234567, contain, expression, fieldthat, format, forms, net, number, security, social, tax, validation, web, write

Validation Expression for a Tax Id Number

On .Net » Web Forms

502 words with 1 Comments; publish: Mon, 31 Dec 2007 15:56:00 GMT; (10062.50, « »)

I am trying to write the validation expression for a field

that can contain a Tax Id number (format of: 73-1234567)

OR a Social Security Number (format of: 439-66-8888).

I know what the expression would be for each of them

separately but do not know how to combine them so

that each type of format is validated for.

Can you have two validating expressions in one

required field validator? Can you someone help me

with the code?

Thanks,

Stephanie

All Comments

Leave a comment...

  • 1 Comments
    • never mind...i got it
      #1; Mon, 31 Dec 2007 15:58:00 GMT