P
Pete
Hi,
I am writing a pre-handler page for aspx pages, in which I
want to call a custom method on the code-behind class file
for the aspx page.
In order to do this I need to somehow get the class full
namespace for the codebehind aspx page from the request
absolute url that I have in the pre-handler page.
The question is how do I obtain the class namespace string
so I can use reflection on the webserver dll file to load
this dynamically. At present I am using a lookup table
that maps the absolute url to the namespace class, and
then using the assembly.gettype() and then creating an
instance of the class from using the type.
I am sure there must be some method available that doesn't
require maintainence of this list?? - as the default pre-
handler passes the absolute url request to the aspx page
by default anyway. Any ideas?
Thanks.
Pete.
I am writing a pre-handler page for aspx pages, in which I
want to call a custom method on the code-behind class file
for the aspx page.
In order to do this I need to somehow get the class full
namespace for the codebehind aspx page from the request
absolute url that I have in the pre-handler page.
The question is how do I obtain the class namespace string
so I can use reflection on the webserver dll file to load
this dynamically. At present I am using a lookup table
that maps the absolute url to the namespace class, and
then using the assembly.gettype() and then creating an
instance of the class from using the type.
I am sure there must be some method available that doesn't
require maintainence of this list?? - as the default pre-
handler passes the absolute url request to the aspx page
by default anyway. Any ideas?
Thanks.
Pete.