Can I create an ASP.NET ImageButton that doesn't postback?
Posted
by Giffyguy
on Stack Overflow
See other posts from Stack Overflow
or by Giffyguy
Published on 2010-04-24T04:51:28Z
Indexed on
2010/04/24
4:53 UTC
Read the original article
Hit count: 229
I'm trying to use the ImageButton control for client-side script execution only. I can specify the client-side script to execute using the OnClientClick property, but how do I stop it from trying to post every time the user clicks it? There is no reason to post when this button is clicked. I've set CausesValidation to False, but this doesn't stop it from posting.
© Stack Overflow or respective owner