Results 1 to 2 of 2

Thread: RegularExpressionValidator and non-blank email address

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    RegularExpressionValidator and non-blank email address

    So I have a register page for my app, I need to require an email address. Used the RegularExpressionValidator, choose a supplied regex for email which looks like
    Code:
    \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
    That seems to work just fine, but it does not take into account when the email address is blank.

    Is there a way to modify the regex to not allow blank? Or would I need to use a RequiredFieldValidator on top of the RegularExpressionValidator?

    Thanks,
    Mike

  2. #2
    Lively Member
    Join Date
    Mar 2002
    Posts
    96

    Re: RegularExpressionValidator and non-blank email address

    You can use a Required validator also. You can have multiple validator controls for a control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width