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. Fire page validations,only on desired button click-event.

Fire page validations,only on desired button click-event.

Scheduled Pinned Locked Moved ASP.NET
tutorial
5 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.
  • A Offline
    A Offline
    anada8886
    wrote on last edited by
    #1

    On my aspx page,I have applied a MasterPage which contains a user control with a link button inside it. My aspx page has submit button and some validation controls. Somehow,I want it to fire validations only on the click event of submit button, but it is also checking the validations on the click of link button. How should I avoid this. Kindly guide. Thank You.

    N 1 Reply Last reply
    0
    • A anada8886

      On my aspx page,I have applied a MasterPage which contains a user control with a link button inside it. My aspx page has submit button and some validation controls. Somehow,I want it to fire validations only on the click event of submit button, but it is also checking the validations on the click of link button. How should I avoid this. Kindly guide. Thank You.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Turn off the CausesValidation[^] property value.

      Navaneeth How to use google | Ask smart questions

      A 1 Reply Last reply
      0
      • N N a v a n e e t h

        Turn off the CausesValidation[^] property value.

        Navaneeth How to use google | Ask smart questions

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

        Hey thanx for your reply. I tried that ,but it's still not working.

        A 1 Reply Last reply
        0
        • A anada8886

          Hey thanx for your reply. I tried that ,but it's still not working.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          anada8886 wrote:

          but it's still not working.

          Are you getting any error ? or what ?

          cheers, Abhijit

          A 1 Reply Last reply
          0
          • A Abhijit Jana

            anada8886 wrote:

            but it's still not working.

            Are you getting any error ? or what ?

            cheers, Abhijit

            A Offline
            A Offline
            anada8886
            wrote on last edited by
            #5

            In the widget on master page(on click of link button),I am allowing the user to log in. whereas in my aspx page I am allowing user to register(these input fields are having validations). If the user is already registered then he can login through the widget which is on master page. But when I try to log in ,it is showing me validation errors,since the input fields for registration on the same page are left blank. I dont want it to check validation when I try to log in. Thanks.

            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