Thanks Joe, and Alex
Unfortunately, in my VB .NET the imagebutton does not have an autopostback
property / attribute.
The following works:
1) return false from the javascript call
Me.BoldImageButton.Attributes.Add("onclick",
"javascript
:FormatText('testiframe', 'bold', '');return false")
2) ensure that the form does NOT have an onsubmit, as this will execute
<form id="Form1" onsubmit="return submitForm();" method="post"
runat="server"> -->
Thank you for your help.
Marcel
"Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
I want to create a button using code-behind that only executes javascript,
and does not post back to the server.
How can I do this - my ImageButton insists on posting back to the server.
Thank you