stop firing validation controls

G

Guest

Hi,

I have designed a form which process database Insert, edit and
Delete(datagrid).

I input userid,password and privilege in textboxes which has validation
controls to verify data keyed in. And press the button to perform insert
operation. Upto here is fine.

I want to perform edit or delete operations. I put datagrid for that one.
After clicking the Update button for the row, the validation controls are
firing again. I need to input some temporary data in the form fields to
perform actual update operation. How can i stop firing validation controls at
this stage?
 
H

Hans Kesting

Hi,
I have designed a form which process database Insert, edit and
Delete(datagrid).

I input userid,password and privilege in textboxes which has validation
controls to verify data keyed in. And press the button to perform insert
operation. Upto here is fine.

I want to perform edit or delete operations. I put datagrid for that one.
After clicking the Update button for the row, the validation controls are
firing again. I need to input some temporary data in the form fields to
perform actual update operation. How can i stop firing validation controls
at this stage?

You can tell a button not to do any validation by setting the
CausesValidation property to false.

Hans Kesting
 
G

Guest

You could also try disabling the validation controls in the button click
handler for the Update.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top