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.
 

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

Back
Top