How to Stop page Validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Digiplex
    New Member
    • Feb 2008
    • 8

    How to Stop page Validation

    I have a set of controls that uses the RequiredFieldVa lidator controls and I check Page.IsValid in a button's Click event. This works. However, I also have a Gridview on the same page which is not using the validation contols, and it somehow is firing the RequiredFieldVa lidator controls on the page. How do I stop this behavior? Thanks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by Digiplex
    I have a set of controls that uses the RequiredFieldVa lidator controls and I check Page.IsValid in a button's Click event. This works. However, I also have a Gridview on the same page which is not using the validation contols, and it somehow is firing the RequiredFieldVa lidator controls on the page. How do I stop this behavior? Thanks
    Place the GridView in a different Form than the controls with the RequiredFieldVa lidator.

    -Frinny

    Comment

    • Digiplex
      New Member
      • Feb 2008
      • 8

      #3
      Thanks for the suggestion. I found an alternative method. I used the group validation property. By grouping I can set mulitple validations to occur for different reasons. Thanks again.

      Comment

      Working...