locked
upon selecting enter RRS feed

  • Question

  • User894532212 posted

    i have a master page with a search text box in it which loads on every page as i call my content pages. The issue is when i have a form on the content page with validation, and someone tries to use the search text box on the master page, it causes the validation to be called on the content page and the user goes no where. what am i doing wrong... if it is any other content page without any validation, the search text box in the master page works great...please help if possible..

     

    thanks,

    Wednesday, February 13, 2008 9:40 AM

Answers

  • User-1028151323 posted

     Set the CausesValidation property on the search box on the master page to false.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 13, 2008 9:45 AM
  • User-1028151323 posted

     Or, you can assign ValidationGroups to each form and then they won't step on each other.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 13, 2008 9:46 AM
  • User-1028151323 posted

    You can use validation groups to set any "group" of fields as a unit. For example if you have a login with UserName field, Password field and Login button, set the ValidationGroup property tp something like "login" and then that "group" will not cause validation with ANY other form fields on the same page. You'd also need to set your Form validation fields to be part of the same group, so UserName's required field rfUserName would also be part of the "login" ValidationGroup.

     You can set those by using the properties window for each form control

     

    Please mark ANSWER if I helped you.
     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 13, 2008 11:28 AM

All replies

  • User-1028151323 posted

     Set the CausesValidation property on the search box on the master page to false.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 13, 2008 9:45 AM
  • User-1028151323 posted

     Or, you can assign ValidationGroups to each form and then they won't step on each other.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 13, 2008 9:46 AM
  • User894532212 posted

    how does one use validation groups?

    Wednesday, February 13, 2008 10:44 AM
  • User894532212 posted

    your fix for using causesvalidation property works... but i am definately interested in the validation groups also.. thank you for your assistance.. the force is strong with you...padamae would be proud...

    Wednesday, February 13, 2008 10:47 AM
  • User-1028151323 posted

    You can use validation groups to set any "group" of fields as a unit. For example if you have a login with UserName field, Password field and Login button, set the ValidationGroup property tp something like "login" and then that "group" will not cause validation with ANY other form fields on the same page. You'd also need to set your Form validation fields to be part of the same group, so UserName's required field rfUserName would also be part of the "login" ValidationGroup.

     You can set those by using the properties window for each form control

     

    Please mark ANSWER if I helped you.
     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 13, 2008 11:28 AM