I want to define an application_beginrequest function within a common include file, which I can then call from each of my aspx pages to log various request variables.
However, I'm having trouble simply understanding what is the best way to go about this. I've tried defining it within an ascx file, but when I view compiler output it's like it's executing it in waaay the wrong place.. am I simply not calling on it in the right way?
I'm using c# (not that this makes any difference)
I realise this is a very general request, but any pointers to a little information on how to go about this kind of thing (if you understand the question ) would be appreciated..
thx in advance
However, I'm having trouble simply understanding what is the best way to go about this. I've tried defining it within an ascx file, but when I view compiler output it's like it's executing it in waaay the wrong place.. am I simply not calling on it in the right way?
I'm using c# (not that this makes any difference)
I realise this is a very general request, but any pointers to a little information on how to go about this kind of thing (if you understand the question ) would be appreciated..
thx in advance