O
Oleg Ogurok
Hi all,
Given a virtual path (URL) to a page, I need to programmatically get its
class type.
For example, there is a page /MyAspNetApp/TargetPage.aspx.
I need to get the automatically generated class to check its type, e.g. to
check if the class implements a certain interface. The base class
(codebehind) will do as well.
I see there is a System.Web.UI.PageParser.GetCompiledInstance() method but
unfortunatelly I can't use it in my scenario. Basically I don't want to
create an instance, just get the compiled type.
There is also, System.Web.UI.PageParser.GetCompiledType(), which looks like
exactly what I need, but this method is marked as internal.
Is there anything I could do?
Thanks,
-Oleg.
Given a virtual path (URL) to a page, I need to programmatically get its
class type.
For example, there is a page /MyAspNetApp/TargetPage.aspx.
I need to get the automatically generated class to check its type, e.g. to
check if the class implements a certain interface. The base class
(codebehind) will do as well.
I see there is a System.Web.UI.PageParser.GetCompiledInstance() method but
unfortunatelly I can't use it in my scenario. Basically I don't want to
create an instance, just get the compiled type.
There is also, System.Web.UI.PageParser.GetCompiledType(), which looks like
exactly what I need, but this method is marked as internal.
Is there anything I could do?
Thanks,
-Oleg.