I have a website developed using C#. I want to see the caller of a method i.e, which method/event handler calls my method.
Suppose there is a button click. I would like to see it as follows
btnClick BusinessLayerClass.SaveDocs(int docID, string docType) DataAccessLayerClass.Update()
btnClick BusinessLayerClass.SaveDocs(int docID, string docType) DataAccessLayerClass.Increase()
Is it possible to see such a stack information? Please advise..
Note: All projects are added as dlls. There is no services like WCF.
System.Environment.StackTrace can be used