473,395 Members | 1,595 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,395 software developers and data experts.

Creating instance of another page class to access the control tree

Hello,
I am writing (Yet Another) Content Management Application. To make it
easier for the end-users, I would like to retrieve the structure of the
website. To do this, I would like to "walk the tree structure" of the
website. The structure of the site is inside custom ASP controls in the
pages of the site. What I need is a way to instantiate the class behind a
page, so that I can discover it's structure using the controls tree (and
then navigating to other pages etc until I have the entire structure of the
site). I need the "instantiated class", not it's HTML output. Essentially
I want a line of code that would do

dim pageToDiscover as new Index.aspx

Any suggestions ?

Thanks in advance.

Jul 8 '07 #1
2 1603
then navigating to other pages etc until I have the entire structure of
the site). I need the "instantiated class", not it's HTML output.
Essentially I want a line of code that would do
You do not, and should not instantiate the ASPX-Classes.
Why do you need it anyway?

For the sitemap... look at the Tree Control and SitemapDataSource!
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Jul 9 '07 #2
see PageParser.GetCompiledPageInstance()
-- bruce (sqlwork.com)

Willy Van den Driessche wrote:
Hello,
I am writing (Yet Another) Content Management Application. To make it
easier for the end-users, I would like to retrieve the structure of the
website. To do this, I would like to "walk the tree structure" of the
website. The structure of the site is inside custom ASP controls in the
pages of the site. What I need is a way to instantiate the class behind
a page, so that I can discover it's structure using the controls tree
(and then navigating to other pages etc until I have the entire
structure of the site). I need the "instantiated class", not it's HTML
output. Essentially I want a line of code that would do

dim pageToDiscover as new Index.aspx

Any suggestions ?

Thanks in advance.
Jul 9 '07 #3

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

Similar topics

0
by: muralidharan | last post by:
WebForm1.aspx Code: <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <ComponentArt:TreeView id="TreeView1" Height="520"...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
5
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click...
7
by: Göran Tänzer | last post by:
Hi, i've written a class which does some calculations for my web application. These informatinos are different for each page request - the current user is not important. i have about 10 aspx...
4
by: D | last post by:
I was reviewing these vb.net classes which deal with user logins, logouts, cookies etc etc. I noticed that in the Page_Load function of a user control the code calls into another library like so...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
17
by: Lee Harr | last post by:
I understand how to create a property like this: class RC(object): def _set_pwm(self, v): self._pwm01 = v % 256 def _get_pwm(self): return self._pwm01 pwm01 = property(_get_pwm, _set_pwm)
8
by: Dan Aldean | last post by:
Hi, 2 web pages, One of them has properties that I need to read in a second form: First Form public class FirstForm : System.Web.UI.Page { private void submitButton_Click(......)
26
by: nyathancha | last post by:
Hi, How Do I create an instance of a derived class from an instance of a base class, essentially wrapping up an existing base class with some additional functionality. The reason I need this is...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.