Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation Issue 2

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I have a page with a datalist that edits and deletes it's own info - so there are some edit and delete buttons - on the same page I have a separate "form" - I need to validate on this other form but not on the datalist - How can I do this? The problem is that I add a required validator to the second form but it gets fired off when someone clicks "edit" on the datalist....

[conehead]
 
you need to set CausesValidation to False of all other button on the page expect the one for which you want to validate

-DNG
 
You can also use the ValidationGroup property of not only the button but also the form elements you wants validated with which buttons.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top