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. Web Development
  3. ASP.NET
  4. validation

validation

Scheduled Pinned Locked Moved ASP.NET
regexhelpquestion
6 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.
  • M Offline
    M Offline
    mahichandu
    wrote on last edited by
    #1

    hi.. in my page n number of fields are there.user may enter some fields maynot enter some fields.so i am not using required field validator.I just want to check with valuetype.so i am using regular expression validator for name to allow lower & upper case letters and space,' etc.see code below. i am entering only those letters only eventhough error message is coming.why??

    C C 2 Replies Last reply
    0
    • M mahichandu

      hi.. in my page n number of fields are there.user may enter some fields maynot enter some fields.so i am not using required field validator.I just want to check with valuetype.so i am using regular expression validator for name to allow lower & upper case letters and space,' etc.see code below. i am entering only those letters only eventhough error message is coming.why??

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Your regular expression probably demands a value. You need to create a regular expression that will pass on an empty input as well as any valid filled in input.

      User group: Scottish Developers Blog: Can Open... Worms? Everywhere! Quote: Man who stand on hill with mouth open wait long time for roast duck to drop in.

      1 Reply Last reply
      0
      • M mahichandu

        hi.. in my page n number of fields are there.user may enter some fields maynot enter some fields.so i am not using required field validator.I just want to check with valuetype.so i am using regular expression validator for name to allow lower & upper case letters and space,' etc.see code below. i am entering only those letters only eventhough error message is coming.why??

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        There is a property on these validators, it's something like 'validateifempty'. I forget the name, but I think that's what you need. Oh, it looks to me like your regex is for only one character. I think you need a * after it.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        M 2 Replies Last reply
        0
        • C Christian Graus

          There is a property on these validators, it's something like 'validateifempty'. I forget the name, but I think that's what you need. Oh, it looks to me like your regex is for only one character. I think you need a * after it.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          M Offline
          M Offline
          mahichandu
          wrote on last edited by
          #4

          hey thanx..its working after adding * to my expression..i did basic mistake..

          1 Reply Last reply
          0
          • C Christian Graus

            There is a property on these validators, it's something like 'validateifempty'. I forget the name, but I think that's what you need. Oh, it looks to me like your regex is for only one character. I think you need a * after it.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            M Offline
            M Offline
            mahichandu
            wrote on last edited by
            #5

            Hey i got one more QQ.is there any property for validation like when the user enters into name textbox..when he type numbers it shouldn't print on the page..for numbers it shouldn't display anything..when the user type alphabits name textbox field should display the letters..what ever the expression we gave those letters should print... any property?? other way of validating??

            M 1 Reply Last reply
            0
            • M mahichandu

              Hey i got one more QQ.is there any property for validation like when the user enters into name textbox..when he type numbers it shouldn't print on the page..for numbers it shouldn't display anything..when the user type alphabits name textbox field should display the letters..what ever the expression we gave those letters should print... any property?? other way of validating??

              M Offline
              M Offline
              mahichandu
              wrote on last edited by
              #6

              hey i solved with ajax toolkit...:)

              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