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. Validators not working

Validators not working

Scheduled Pinned Locked Moved ASP.NET
regexhelp
3 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.
  • N Offline
    N Offline
    NetBot
    wrote on last edited by
    #1

    Hi all, In my form i have a textbox field wherein the user needs to input his email address. All i need to do is make this field mandatory as well as i need to check it for correct format. For this purpose i have used a required field validator and a regular expression validator validating the same control. These validation fires well when the textbox lose focus but fails when i submit the form. I also checked my submit button for property causesvalidation=true . Any help would be highly apppreciated..

    I B 2 Replies Last reply
    0
    • N NetBot

      Hi all, In my form i have a textbox field wherein the user needs to input his email address. All i need to do is make this field mandatory as well as i need to check it for correct format. For this purpose i have used a required field validator and a regular expression validator validating the same control. These validation fires well when the textbox lose focus but fails when i submit the form. I also checked my submit button for property causesvalidation=true . Any help would be highly apppreciated..

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Set VaidationGroup property to all validator ctntrols and submit button beSt rEgard pAthan

      please don't forget to vote on the post that helped you.

      1 Reply Last reply
      0
      • N NetBot

        Hi all, In my form i have a textbox field wherein the user needs to input his email address. All i need to do is make this field mandatory as well as i need to check it for correct format. For this purpose i have used a required field validator and a regular expression validator validating the same control. These validation fires well when the textbox lose focus but fails when i submit the form. I also checked my submit button for property causesvalidation=true . Any help would be highly apppreciated..

        B Offline
        B Offline
        Braulio Dez
        wrote on last edited by
        #3

        Another source of issues comes if you are using AJAX ASP .net, there is a workaround for this: http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx[^]

        /// ------------------------- Braulio Díez http://www.tipsdotnet.com /// -------------------------

        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