为什么许多ImageButton webcontrol的事件都受到保护!! [英] Why many of ImageButton webcontrol's events are protected!!?
本文介绍了为什么许多ImageButton webcontrol的事件都受到保护!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么许多ImageButton webcontrol都受到保护!!喜欢.OnClick,当我们自动添加ImageButton时,我们怎么能到达它们?
我需要点击自动添加的图标,所以它将事件发送给它的功能,但我无法做到,因为你无法到达.OnClick事件,它受到保护!!
所以是runat
解决方案
有两种类型的控制
1. html控制
2 .asp.net控制
如果你使用html控件那么你必须在java脚本中编写onclick函数()
如果它是一个asp控件你可以通过双击点击immage来获取事件/>
谢谢你
但是当我指定图像按钮的属性时,我无法触及OnClick事件
我的意思是:
ImageButton1.OnClick
当用户点击图片时,
无法通过它调用该函数,它受到保护..
但是当我指定图像按钮的属性时,我无法触及OnClick事件
我的意思是:
ImageButton1.OnClick
当用户点击图片时,
无法通过它调用该函数,它受到保护..
你使用asp或HTML有什么控制因为joerozario有一个很好的火车,如果想到他说的那么继续
Why many of ImageButton webcontrol are protected!!? like .OnClick and how could we reach them when we add ImageButton automatically??
I need to click the on the automatically added icon, so it sends the event to it''s function, but I couldn''t make it because you cannot reach .OnClick event, it''s protected!!
and so is the "runat"
解决方案
there are two types of control
1. html control
2 .asp.net control
if u use html control then u have to write function in java scrip for onclick()
if it is a asp control u can get the event by duble clicking on the immage
thank u
But when I specify the attributes for the imagebutton I couldn''t reach OnClick event
I mean:
ImageButton1.OnClick
is not available to invoke the function by it when user clicks the image, it''s protected..
But when I specify the attributes for the imagebutton I couldn''t reach OnClick event
I mean:
ImageButton1.OnClick
is not available to invoke the function by it when user clicks the image, it''s protected..What control are you using asp or HTML cause joerozario had a good train if thought with what he said then go on that
这篇关于为什么许多ImageButton webcontrol的事件都受到保护!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文