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. How to Validate 3 textBox controls using a single RequiredValidator?

How to Validate 3 textBox controls using a single RequiredValidator?

Scheduled Pinned Locked Moved ASP.NET
questioncsharphelptutorial
2 Posts 2 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.
  • C Offline
    C Offline
    crazy_mads
    wrote on last edited by
    #1

    I have 3 TextBoxes which hold Addresses. Only if all the three textBoxes are blank i need to display a Message saying, Address cant be left blank. Even if any one of the textBox is filled i should not display the message. I have to do this in the client side and then on the click of a button i need to validate the address(i call a function in the code behind page in C# to check the format) Please help me. How do i go abt? :( Mads

    _ 1 Reply Last reply
    0
    • C crazy_mads

      I have 3 TextBoxes which hold Addresses. Only if all the three textBoxes are blank i need to display a Message saying, Address cant be left blank. Even if any one of the textBox is filled i should not display the message. I have to do this in the client side and then on the click of a button i need to validate the address(i call a function in the code behind page in C# to check the format) Please help me. How do i go abt? :( Mads

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      I not so sure about how to accomplish this task with required field validator but you can use javascript code for this purpose. Custom validator can serve the purpose.

      Best Regards, Apurva Kaushal

      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