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!

Required field validator with Cancel-button 3

Status
Not open for further replies.

JDAEMS

Programmer
Aug 27, 2003
84
BE
Dear sir/madam,

I have a simple webpage where they can give in a name and then click on the finish-button or on the cancel-button.

the textfield where they can give in a name, can't be empty when clicked on finish. However, when clicked on cancel, it can be empty.

I've added a requiredfieldvalidator, but it also works when clicked on the cancel-button. It should not do this, only when clicked on the finish-button.

How can I accomplish this?

Kind regards
Jelle
 
set the CausesValidation property on the Cancel button to false
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top