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. Custom validation

Custom validation

Scheduled Pinned Locked Moved ASP.NET
helpquestion
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.
  • J Offline
    J Offline
    jashimu
    wrote on last edited by
    #1

    Hi all, I am trying to do custom validation. I have two textBoxes. what I am trying to do is when user enter something in the first textBox then the Second TextBox need to be filled. Anohter word, if the first TextBox has a value then second textBox become required. other wise both textBoxes can be empty. how do I do it. Please help.

    D S 2 Replies Last reply
    0
    • J jashimu

      Hi all, I am trying to do custom validation. I have two textBoxes. what I am trying to do is when user enter something in the first textBox then the Second TextBox need to be filled. Anohter word, if the first TextBox has a value then second textBox become required. other wise both textBoxes can be empty. how do I do it. Please help.

      D Offline
      D Offline
      David C Hobbyist
      wrote on last edited by
      #2

      http://msdn.microsoft.com/en-us/library/a0z2h4sw.aspx[^] Maybe this will help

      Frazzle the name say's it all

      1 Reply Last reply
      0
      • J jashimu

        Hi all, I am trying to do custom validation. I have two textBoxes. what I am trying to do is when user enter something in the first textBox then the Second TextBox need to be filled. Anohter word, if the first TextBox has a value then second textBox become required. other wise both textBoxes can be empty. how do I do it. Please help.

        S Offline
        S Offline
        Sandeepkumar Ramani
        wrote on last edited by
        #3

        Hi, you can Create javascript function and inside that function you need to write code to enable requirefield validator which is used to check textbox2 needs to be filled. use onblur event to textbox control to call this javascript function. forget about using CustomValidator here. Hope this will help..

        J 1 Reply Last reply
        0
        • S Sandeepkumar Ramani

          Hi, you can Create javascript function and inside that function you need to write code to enable requirefield validator which is used to check textbox2 needs to be filled. use onblur event to textbox control to call this javascript function. forget about using CustomValidator here. Hope this will help..

          J Offline
          J Offline
          jashimu
          wrote on last edited by
          #4

          Thanks for your help. I end up doing similar what you are saying.

          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