Hi,
I have a RadTreeView control which I have bound to the directory sctructure of a website very similar to Telerik's demo under Application Scenarios / Directory Structure found here. Anyway, what I'd like to do is when a user selects a page from the tree, I want to iterate through that page (not navigate to it) using reflection and list out the various controls available on the selected page in order to perform various administrative purposes. This is easy enough for User Controls as I can just use LoadControl to gain access to an instance of a user control and then reflect through it to pull out control references. But an actual page is much different. I can't seem to find a way to either get a reference to the page in question or reflect the page. I think the nature of Partial Page Classes has something to do with it.
Anyway, if anyone has run into a similar issue, I'd love to hear how you worked around it.
Thanks in advance,
Tom
I have a RadTreeView control which I have bound to the directory sctructure of a website very similar to Telerik's demo under Application Scenarios / Directory Structure found here. Anyway, what I'd like to do is when a user selects a page from the tree, I want to iterate through that page (not navigate to it) using reflection and list out the various controls available on the selected page in order to perform various administrative purposes. This is easy enough for User Controls as I can just use LoadControl to gain access to an instance of a user control and then reflect through it to pull out control references. But an actual page is much different. I can't seem to find a way to either get a reference to the page in question or reflect the page. I think the nature of Partial Page Classes has something to do with it.
Anyway, if anyone has run into a similar issue, I'd love to hear how you worked around it.
Thanks in advance,
Tom