K
Kent Boogaart
Hi,
If I know a type which extends System.Web.UI.Page, is there any way I can
figure out what the URL for that page is? The closest I've come to this is
to:
1. Construct an instance of the type.
2. Use the AppRelativeVirtualPath property (new to 2.0 which I am using).
I have two problems with this approach. Firstly, I have to construct a page
instance and I was really hoping I wouldn't have to. Secondly, I haven't
looked deeply into the AppRelativeVirtualPath property yet so I'm not
entirely sure whether it is exactly what I want (but it seemed to work for
my simple test).
Thanks,
Kent
If I know a type which extends System.Web.UI.Page, is there any way I can
figure out what the URL for that page is? The closest I've come to this is
to:
1. Construct an instance of the type.
2. Use the AppRelativeVirtualPath property (new to 2.0 which I am using).
I have two problems with this approach. Firstly, I have to construct a page
instance and I was really hoping I wouldn't have to. Secondly, I haven't
looked deeply into the AppRelativeVirtualPath property yet so I'm not
entirely sure whether it is exactly what I want (but it seemed to work for
my simple test).
Thanks,
Kent