禁用ImageButton上的回发 [英] disable postback on ImageButton
本文介绍了禁用ImageButton上的回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
i在我的代码上有一个ImageButton。
i想要在我点击它时禁用ImageButton的回发。我想只启用onClientClick事件。
谢谢。
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.
推荐答案
您无法禁用给定Button控件的回发,因为它是按钮的默认趋势。
尽管我建议你使用一些客户端控制而不是服务器端。
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.
这篇关于禁用ImageButton上的回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文