How to access stack frame information while debugging ASP.net program?
At page level you can do that with the help of
<%@ Page Trace="true".....................................
or you can also enable it from the codebehind in the page load method as Trace.Enabled = true;
Is this what you are looking for?
or you can try this link http://peterkellner.net/2009/12/21/how-to-get-a-stack-trace-from-c-without-throwing-exception/