PDA

Click to See Complete Forum and Search --> : Function Caller


vbud
Apr 19th, 2004, 12:43 AM
Hi all,

I have a situation in ASP.Net where I need to know from which page or better: which procedure a given function is being called, anybody knows how this could be achieved?
I know that by passing a given parameter I could trace that but this would involve changing at least a line of code code in all my other pages and I prefer to keep this as a last resort. All help appreciated.

thanx.

Serge
May 14th, 2004, 11:24 AM
You can use StackTrace (part of System.Diagnostics namespace) to loop through and check what method called your function.