Results 1 to 2 of 2

Thread: Function Caller

  1. #1

    Thread Starter
    Hyperactive Member vbud's Avatar
    Join Date
    Jan 2002
    Location
    Mru 20 17S, 57 33E Goal: Get out of the BOX Status: In The Shadows!!! Target Posts: 3,000,000,000
    Posts
    378

    Question 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.
    >!v!<
    Free your mind, stop thinking
    http://inspirone.blogspot.com

    Please rate this post if it helped you

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You can use StackTrace (part of System.Diagnostics namespace) to loop through and check what method called your function.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width