Reputation: 372
I have a profile page with a bunch of textboxes and validators. The validation works fine right now. My issue is that I have added a couple of link buttons that go to different pages. When I click on a linkbutton the validators fire, which I don't want. I just want to go to the next page. I tried disbling the validators in the linkbutton click event but it didn't work. How do I stop the validators firing?
Thanks
Upvotes: 1
Views: 356
Reputation: 28530
Simply set the CausesValidation atrribute to false on the linkbuttons in the markup:
CausesValidation="false"
LinkButton.CausesValidation Property
Upvotes: 2