Alex Rivera | Logout

How to disable submit behaviour of asp:ImageButton?

Asked 2009-10-13T16:31:27.557
12

I have a image button in a page which can be triggered on mouse click, by default it gets triggered on enter press also which i want to disable.

I know about "UseSubmitBehaviour" attribute in asp:Button, is there a way to do the same in asp:ImageButton?

Edit
Report

1 Answer

1

you want something like

<form ...>

  <!-- some code here -->

  <button style='display:none' onclick='return false'>here comes the magic</button>

  <button>normal button </button>

</form>
answered 2009-12-04T06:46:57.013

Your Answer