I am trying to build a toolbar. To do so, I am exploring using multiple asp:ImageButtons to build the bar.
I have been able to get around the problem of being able to execute code that I want to use on the client side (although I admit that the ImageButton is really intended to execute code on the server).
I have also reviewed comments about this identical issue that previously appeared in this forum. See:
The conclusion at that time was to use the standard html image control.
However, the basic image control does not have tooltips or even a click event.
The issue I have with the ImageButton is that after I have executed my code locally, it wants to do a postback. I suppose if I could set an attribute like AutoPostBack="false", everything would be fine.. But the ImageButton doesn't have the AutoPostBack option.
Preventing a postback is important to me because if I were to change a button from an "enabled" to a "disabled" image, pressing any other button on the bar refreshes the bar back to its original default images - as the postback reloads the entire page.
I'd like to minimize the work required to preserve the current status of the buttons, and eliminate unnecessary postbacks whenever possible.