Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi.
i have a ImageButton on my code.
i wanna disable postback of ImageButton when i click on it.and i wanna only enable onClientClick event.

thank you.
Posted

1 solution

You cannot disable postback of a given Button control because it is a default tendancy of buttons.

Inspite of that I would suggest you use some client side control rather than server side.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900