Get the current file being processed in ASP.net
<p>I have a requirement where I want to trace what file is being processed by .net runtime. I mean if it is processing usercontrol x.ascx then it should return the whole path of that, and if it is processing usercontrol y.ascx it should return that. </p>

<p>There are some candidates properties. </p>

<pre><code>Request.AppRelativeCurrentExecutionFilePath
</code></pre>

<p>or </p>

<pre><code>TemplateControl.AppRelativeVirtualPath. 
</code></pre>

<p>Can somebody help me with this, or is there any other property that can give me the path. </p>
