stop firing validation controls

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
You could also try disabling the validation controls in the button click
handler for the Update.
Peter
 
Back
Top