Click here to Skip to main content
16,019,531 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
asp.net

In my web application ,how to get current page all button id or any click event id (like link click event) when the button or click event fired using generic handler and javascript.



please help me...
Posted
Updated 19-May-12 0:29am
v6
Comments
Sergey Alexandrovich Kryukov 18-May-12 15:00pm    
"All" seems to be many, don't you think so? :-) Anyway, what's the problem? With JavaScript, you have the access to the whole page's DOM through document object.
Not clear what do you mean my "get" event. Events are handled, not got... what do you want to do with all that? What's the purpose of it?
--SA
[no name] 18-May-12 15:39pm    
WHat problem are you trying to solve?

1 solution

hai,
try this
document.getElementById('<%=button1.ClientID%>')
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900