I am currently working on customizing a pre-existing ASP.NET 3.5 AJAX web application, specifically SharePoint 2010. Unfortunately, I do not have the ability to modify the source code.
My task involves adding a click event handler to act as the first event on a Close button. Before doing so, I would like to check the existing event handlers already registered on this button to ensure I do not disrupt any functionality.
While I am still in the process of learning ASP.NET AJAX, I have noticed that the Sys.UI.DomEvent class provides methods for adding and removing event handlers but does not have a built-in way to enumerate them. Fortunately, I am well-versed in jQuery and comfortable with JavaScript debugging in Chrome.
Can someone advise me on how I can identify which events are registered and insert a custom event handler at a specific position?