javascript - How can I add an onclick to a generic control in asp.net? -


I want the programmer to pass a control to a method, and then I want to add an onclick to it. But there is no property property in control. Is there an interface or something out of control that I can use to add an onclick attribute to it?

Note that I want to add a JavaScript onclick (ClientClick?).

Check the System.Web.UI.WebControls.WebControl class - It is derived from System.Web.UI.Control and has a property property.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -