0

I am working on an ASP.NET page, I have datetime pickers and other drop down lists, on selection change of drop down lists the datetime textchanged events get fired. However nothing is calling the events explicitly and there are no changes on the datetime pickers text that are causing the events to fire.

[UPDATE] - It seems this is happening only with the first DDL selection change event, the next time the datetime picker event doesn't get fired.

How can I know who is calling it? Is there some call stack for asp.net events?

12
  • You can probably get stack trace information with new StackTrace(int).GetFrame(int) and tweak the int values to find the caller. Events also have a sender object you can inspect which should be whatever triggered the event. Commented May 7, 2014 at 14:21
  • I might be misunderstanding what you mean...but the DDL component is what fires the event based on the user clicking a new item. If you inspect the sender parameter you should find it's a reference to the DDL. Commented May 7, 2014 at 14:21
  • @David the sender object points to the datetime picker which I can't find who changed its value. Commented May 7, 2014 at 14:23
  • @James before the DDL event is called, the datetime picker is being fired. that's my problem. who fired it? Commented May 7, 2014 at 14:24
  • What component are you using? Commented May 7, 2014 at 14:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.