onSubmit called by all of my Imagebuttons

  • Thread starter Thread starter graphicsxp
  • Start date Start date
G

graphicsxp

Hi,

I have a few ImageButton controls on my form. One of them is the save
one, on which I want the form to be submited. Other imageButtons
trigger a postback, but they should not cause form validation on the
client side, meaning the OnSubmit property of the Form should not be
triggered. At the moment all of them trigger this property. How can I
prevent that from happening ?

Thanks
 
Set the CausesValidation property to false to prevent a control from
causing validation.

You can't prevent the onsubmit event, that is always triggered when a
form is posted.
 
Back
Top