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

Accessing Controls contained in another Control from ASPX Page

Hi All!

Is there any ways to get access to the controls contained in another user
controls from an ASP.NET page?

For example I have...

- User Control A
|_ User Control B (which uses User Control A)
|_ User Control C (which uses User Control B)
|_ ASPX page A (which uses User Control C)

So, is it possible for ASPX page A to get access to User Control A that is
contained in the User Control C (apart from exposing via a public property)
?

Any help or pointers are greatly appreciated!

Thank you all in advance.

willy
Nov 19 '05 #1
2 1377
anybody?

willy

"Willy" <11****@catchit.com.com.cmz> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
Hi All!

Is there any ways to get access to the controls contained in another user
controls from an ASP.NET page?

For example I have...

- User Control A
|_ User Control B (which uses User Control A)
|_ User Control C (which uses User Control B)
|_ ASPX page A (which uses User Control C)

So, is it possible for ASPX page A to get access to User Control A that is
contained in the User Control C (apart from exposing via a public
property) ?

Any help or pointers are greatly appreciated!

Thank you all in advance.

willy

Nov 19 '05 #2
I have an article on this kinda thing:
http://www.openmymind.net/communication/index.html
but it'll just tell you to use a property...why you don't want to do this is
beyond me...

you can use FindControl(xxx).FindControl(xxxx).FindControl(xxx x) but that's
a horrible choice as (a) it's error prone (b) can easily break

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Willy" <11****@catchit.com.com.cmz> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
Hi All!

Is there any ways to get access to the controls contained in another user
controls from an ASP.NET page?

For example I have...

- User Control A
|_ User Control B (which uses User Control A)
|_ User Control C (which uses User Control B)
|_ ASPX page A (which uses User Control C)

So, is it possible for ASPX page A to get access to User Control A that is
contained in the User Control C (apart from exposing via a public property) ?

Any help or pointers are greatly appreciated!

Thank you all in advance.

willy

Nov 19 '05 #3

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

Similar topics

0
by: luca | last post by:
Hi all. My problem is that I can't handle events raised from child components within a composite server control when the control is created dynamically. Everything works fine if the same control...
2
by: Jon Hyland | last post by:
This might be a dumb question, but what is the best way for one instance of a user control to access properties of an instance of another user control? For example, let's say I have an instance...
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...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
5
by: Alex Maghen | last post by:
Hi. If I create a WebControl (User Control, actually), I know how, easily, to access the design-time Properties that have been set as Propertiy nodes in the tag used on the ASPX page. But I've...
4
by: tshad | last post by:
Is there a way for a User Control to access an object (such as label or textbox) on the .aspx page that calls it? For example: x.aspx ************************************** .... Sub...
15
by: Arpan | last post by:
Consider the following code which retrieves data from a SQL Server 2005 DB table & displays it in a DataGrid: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)...
3
by: JimCinLA | last post by:
I use a place holder to load different user controls on an .aspx page. Let's call this default.aspx. Each user controls contains about a dozen different ASP.Net controls. My question is, how...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...

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.