CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Location
    asian
    Posts
    116

    validators and buttons

    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!!!
    Thanks!!!
    Kristine

  2. #2
    Join Date
    Jul 2003
    Location
    Jordan
    Posts
    36

    No Problem with that

    Hi there.

    you can use the property of button view which Name is

    - CausesValidations - Switch it to false and everything will be ok.

    bye.
    www

  3. #3
    Join Date
    Feb 2002
    Location
    Texas
    Posts
    51
    If each button needs to validate different information, you can disable/enable the associated validators in the onclick event of the buttons.
    Jeremy Ames
    DP Support Specialist
    Ben E Keith Foods

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured