Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Enterprise Library C#

Enterprise Library C#

Scheduled Pinned Locked Moved C#
csharpregex
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spankyleo123
    wrote on last edited by
    #1

    Hi all, I am using Enterprise Library for validation on fields on the form. I have a field for email, I want to validate it using REGEX Validator if email is entered into the field, or if the field is left blank, I do not want any validation to happen on it. Which validator do I have to use to both ALLOW Null and check if email is entered. I hope this makes sense. Thanks,

    P N 2 Replies Last reply
    0
    • S spankyleo123

      Hi all, I am using Enterprise Library for validation on fields on the form. I have a field for email, I want to validate it using REGEX Validator if email is entered into the field, or if the field is left blank, I do not want any validation to happen on it. Which validator do I have to use to both ALLOW Null and check if email is entered. I hope this makes sense. Thanks,

      P Offline
      P Offline
      PSK_
      wrote on last edited by
      #2

      Check this[^]

      WWW, WCF, WWF, WPF, WFC .... WTF

      S 1 Reply Last reply
      0
      • P PSK_

        Check this[^]

        WWW, WCF, WWF, WPF, WFC .... WTF

        S Offline
        S Offline
        spankyleo123
        wrote on last edited by
        #3

        Thanks for posting. Am using Winforms and C# mate, I should have been more specific.

        1 Reply Last reply
        0
        • S spankyleo123

          Hi all, I am using Enterprise Library for validation on fields on the form. I have a field for email, I want to validate it using REGEX Validator if email is entered into the field, or if the field is left blank, I do not want any validation to happen on it. Which validator do I have to use to both ALLOW Null and check if email is entered. I hope this makes sense. Thanks,

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You can add more than one validator, or use a custom validator, self validator Introduction to Validation Application Block[^]


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups