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
questioncsharpasp-nethelp
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.
  • H Offline
    H Offline
    hounetdev
    wrote on last edited by
    #1

    Hello, I have an ASP.NET, i am using VB. I am using requiredfieldvalidator to check some textboxes. It is working fine, the problem i am having is that i have two buttons on the page and i only want the validation to happen when one is clicked and it is currently happening for both. How do I get it to only happen with one button? The textboxes and buttons are all serverside controls. Thank you, Santana

    S A 2 Replies Last reply
    0
    • H hounetdev

      Hello, I have an ASP.NET, i am using VB. I am using requiredfieldvalidator to check some textboxes. It is working fine, the problem i am having is that i have two buttons on the page and i only want the validation to happen when one is clicked and it is currently happening for both. How do I get it to only happen with one button? The textboxes and buttons are all serverside controls. Thank you, Santana

      S Offline
      S Offline
      Steven Campbell
      wrote on last edited by
      #2

      Set the CausesValidation property for the button to False.

      1 Reply Last reply
      0
      • H hounetdev

        Hello, I have an ASP.NET, i am using VB. I am using requiredfieldvalidator to check some textboxes. It is working fine, the problem i am having is that i have two buttons on the page and i only want the validation to happen when one is clicked and it is currently happening for both. How do I get it to only happen with one button? The textboxes and buttons are all serverside controls. Thank you, Santana

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        In your case, that will surely work. Just to let you know, you can enable or disable validators based on your logic in code.

        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