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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. validator

validator

Scheduled Pinned Locked Moved ASP.NET
helpquestiontutorial
4 Posts 4 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.
  • K Offline
    K Offline
    kristine2002
    wrote on last edited by
    #1

    Hi! Im using several validators on my web form which accept inputs for User Profile. I have 2 buttons, one is the submit button and the other one is view button use for viewing all User's from a table. When I left the required fields empty and click the submit button the validation controls function correctly. But my problem now is how to stop the validation controls in validating the web form if I click the View button? What is happening right now is when i click the view button it showed me the validation error msg. What is want is if i click the view button it will lead me to other web form/ Does anyone knows how to fix this? Need your help badly thanks!!!

    D P A 3 Replies Last reply
    0
    • K kristine2002

      Hi! Im using several validators on my web form which accept inputs for User Profile. I have 2 buttons, one is the submit button and the other one is view button use for viewing all User's from a table. When I left the required fields empty and click the submit button the validation controls function correctly. But my problem now is how to stop the validation controls in validating the web form if I click the View button? What is happening right now is when i click the view button it showed me the validation error msg. What is want is if i click the view button it will lead me to other web form/ Does anyone knows how to fix this? Need your help badly thanks!!!

      D Offline
      D Offline
      dratcha
      wrote on last edited by
      #2

      Set your view button to CausesValidation="false" This can either be done via design view on the properties of the button, or in the html view by entering the text directly into the html:

      1 Reply Last reply
      0
      • K kristine2002

        Hi! Im using several validators on my web form which accept inputs for User Profile. I have 2 buttons, one is the submit button and the other one is view button use for viewing all User's from a table. When I left the required fields empty and click the submit button the validation controls function correctly. But my problem now is how to stop the validation controls in validating the web form if I click the View button? What is happening right now is when i click the view button it showed me the validation error msg. What is want is if i click the view button it will lead me to other web form/ Does anyone knows how to fix this? Need your help badly thanks!!!

        P Offline
        P Offline
        Pratik Desai
        wrote on last edited by
        #3

        To the View button add CausesValidation=False so that it does not perform validation And then on server side onclick for the view button redirect to the appropriate page.

        1 Reply Last reply
        0
        • K kristine2002

          Hi! Im using several validators on my web form which accept inputs for User Profile. I have 2 buttons, one is the submit button and the other one is view button use for viewing all User's from a table. When I left the required fields empty and click the submit button the validation controls function correctly. But my problem now is how to stop the validation controls in validating the web form if I click the View button? What is happening right now is when i click the view button it showed me the validation error msg. What is want is if i click the view button it will lead me to other web form/ Does anyone knows how to fix this? Need your help badly thanks!!!

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

          THANK YOU!!!!

          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