如何确定事件的检查条件 [英] how to made check condition for event

查看:59
本文介绍了如何确定事件的检查条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检查(imgBtnCancel.Click == true)

可能吗.

i need to check (imgBtnCancel.Click == true)

Is it possible. if not than what is alternative for this

推荐答案

在ImageButton的Onclick标记中分配功能.
试试这个,
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.click.aspx [ http://msdn.microsoft.com /en-us/library/system.web.ui.webcontrols.imagebutton.click(VS.71).aspx [
Assign your function in Onclick tag in ImageButton.
Try this,
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.click.aspx[^]
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.click(VS.71).aspx[^]


请参阅下面的文章


要知道哪个控件引发了PostBack的方式
See below article


Way to know which control have raised PostBack


这篇关于如何确定事件的检查条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆