473,396 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get ASPX Controls from another page

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 ;-)

Apr 4 '07 #1
1 3302
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....

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Diego Jancic" <ja****@gmail.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
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 ;-)

Apr 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
0
by: Matthias Lohrer | last post by:
Hi, I'm playing around with the possibilities of Page.ParseControl. Thanks to Kirk Allen Evans I got my example running (Posting Juli, 17, "Re: Generating ASP.NET-Controls with XSLT...
5
by: Jeremy Ames | last post by:
I have run into a major road block with my page development projects. I am trying to add a literal control to my asp.net page and I got an error stating that the control could not be added because...
3
by: mortb | last post by:
Sometimes you want to transfer to another page and pass some values along not using the query string nor the session. Is there some way to do this? cheers, mortb
1
by: Greg Smith | last post by:
What is the syntax to reference a control on another page? I have a class module that I would like to code to change parameters on a series of controls on a web page. There are to many to pass by...
2
by: Ricardo | last post by:
How can I navigate to another page via a button, and pass a variable to this next page... How can I do this via that method that I see in other sites that the url goes like this: ...
2
by: Stu | last post by:
Hi, When I try and use Javascript to post page form data from one aspx page to another I get the error 'Unable to validate data. '. I am not trying to read the data using web controls I am...
2
by: eagle | last post by:
How do I access a control, like a placeholder, from another page, or another user control that may be on the same page. For instance, I have a web page with 2 user controls. One user controls...
2
by: Mike P | last post by:
When you are passing a value to another page, and will need access to it throughout the page and on any postbacks, what is the best way to store it? By making it a variable accessible to the whole...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.