Get ASPX Controls from another page

  • Thread starter Thread starter Diego Jancic
  • Start date Start date
D

Diego Jancic

Hi!,
I need to get the controls' information on a page, which are defined
inside the aspx.
I'll try to explain better my situation (sorry for my poor english):
I wrote a toolbar control that allows other developers to show
operations anywhere on a page. To use the control, we use something
like this:

<gda:Toolbar runat ="server" ID="toolbar">

<gda:Operation runat="server" ID="op1" Guid="0D973F3A-1881-49F4-
A70C-825D5B813F2A" />

<gda:Operation runat="server" ID="op2" Guid="3EF7A61A-6CC0-4CE4-
B4C4-F437ACFD3A14" />

<gda:Operation runat="server" ID="op3" Guid="2FAA0D00-69E4-4DFF-
B984-1FCCFEBA0244" />

</gda:Toolbar>

.... and, the hard part is when I need to create a permission manager
pages. I need to parse the page in background and read all the
operations defined in the .aspx file.

I already made the code to parse the page and get the type of the
page, but all the controls are uninitiallized!
The little source is this:

IHttpHandler handler = PageParser.GetCompiledPageInstance(virtualPath,
inputFile, Context);
handler.GetType().BaseType

Is there a way to do that?

Thanks in advance!,
Diego

-- If the post is incomprehensible please let me know ;-)
 
Can you please repost this to the microsoft.public.dotnet.framework.aspnet
newsgroup. I'd be happy to help, but we should do this in the right
newsgroup....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top