本文介绍了OnClientClick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个用来创建按钮控件的用户控件.它不是从按钮继承的.该控件由3个按钮组成.我需要在客户端单击此控件时运行脚本,以运行一些javascript.此按钮"控件具有在运行时通过委托生成的clicked事件.是否可以向此用户控件或一般任何其他用户控件添加OnClientClick事件?

感谢您的帮助.

Hi,

I have a user control that I used to create a button control with. It doesn''t inherit from button. This control is composed of 3 buttons.I need to run a script on client click of this control to run some javascript. This "button" control has a clicked event generated during runtime through delegates. Is it possible to add an OnClientClick event to this user control or any other user control in general?

Thanks for your help

推荐答案



这篇关于OnClientClick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 01:29