-
Function Caller
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.
-
You can use StackTrace (part of System.Diagnostics namespace) to loop through and check what method called your function.