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

Embeded User Controls

Just wondering if someone can help me out. I'm building a web app that uses
UserControls for different forms etc. I have a few UserControls that are
embeded and I want to be able to call/pass data from the parent UserControl
to the child UserControl(s). I'm using framework 1.1 and I can't use 2.0
becuse of the hosting package I currently have. Is there any way I can do
this? I've looked everywhere for a good explanation on calling UserControl
properties/methods from embeded UserControls but I can't seem to find
anything. Any help would be appreciated.

Thank you,

Mike

Jun 4 '07 #1
4 1444
Mike,

To talk from the child usercontrol to the parent, try using events.

To talk from the parent to the child, you can reference the child object,
and call a method or property.
Hope this helps,

Steve

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
Just wondering if someone can help me out. I'm building a web app that
uses
UserControls for different forms etc. I have a few UserControls that are
embeded and I want to be able to call/pass data from the parent
UserControl
to the child UserControl(s). I'm using framework 1.1 and I can't use 2.0
becuse of the hosting package I currently have. Is there any way I can do
this? I've looked everywhere for a good explanation on calling UserControl
properties/methods from embeded UserControls but I can't seem to find
anything. Any help would be appreciated.

Thank you,

Mike

Jun 4 '07 #2
Steve,

Thank you for your reply. Is there some documentation you can point me to so
I can see how this is done. I'm pretty new at this so I want to make sure I'm
doing it right. Just to give you a bit of detail on what I'm trying to do. I
have 3 UserControls
UC1 has a form and it holds UC2 and UC3. Each of UC is in a saperate Panel
with visibility set to false. I'm trying to setup a "Step 1", "Step 2" type
of screen so that the user fills in the info step by step. And each of the
UserControls holds different fields of info the user has to fill. I have
everything working except trying to make UserControls communicate with each
other. I appreciate your help on this.

Thank you,

Mike
"PlatinumBay" wrote:
Mike,

To talk from the child usercontrol to the parent, try using events.

To talk from the parent to the child, you can reference the child object,
and call a method or property.
Hope this helps,

Steve

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
Just wondering if someone can help me out. I'm building a web app that
uses
UserControls for different forms etc. I have a few UserControls that are
embeded and I want to be able to call/pass data from the parent
UserControl
to the child UserControl(s). I'm using framework 1.1 and I can't use 2.0
becuse of the hosting package I currently have. Is there any way I can do
this? I've looked everywhere for a good explanation on calling UserControl
properties/methods from embeded UserControls but I can't seem to find
anything. Any help would be appreciated.

Thank you,

Mike


Jun 5 '07 #3
Mike,

Here is an article explaining UC to UC, UC to Page, and Page to UC
communication as well as using interfaces and event driven communication.
http://www.openmymind.net/communication/index.html#3.3

Let me know if you need some more guidance.

Hope this helps,
Steve
"Mike" <Mi**@discussions.microsoft.comwrote in message
news:19**********************************@microsof t.com...
Steve,

Thank you for your reply. Is there some documentation you can point me to
so
I can see how this is done. I'm pretty new at this so I want to make sure
I'm
doing it right. Just to give you a bit of detail on what I'm trying to do.
I
have 3 UserControls
UC1 has a form and it holds UC2 and UC3. Each of UC is in a saperate Panel
with visibility set to false. I'm trying to setup a "Step 1", "Step 2"
type
of screen so that the user fills in the info step by step. And each of the
UserControls holds different fields of info the user has to fill. I have
everything working except trying to make UserControls communicate with
each
other. I appreciate your help on this.

Thank you,

Mike
"PlatinumBay" wrote:
>Mike,

To talk from the child usercontrol to the parent, try using events.

To talk from the parent to the child, you can reference the child object,
and call a method or property.
Hope this helps,

Steve

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:7F**********************************@microso ft.com...
Just wondering if someone can help me out. I'm building a web app that
uses
UserControls for different forms etc. I have a few UserControls that
are
embeded and I want to be able to call/pass data from the parent
UserControl
to the child UserControl(s). I'm using framework 1.1 and I can't use
2.0
becuse of the hosting package I currently have. Is there any way I can
do
this? I've looked everywhere for a good explanation on calling
UserControl
properties/methods from embeded UserControls but I can't seem to find
anything. Any help would be appreciated.

Thank you,

Mike



Jun 5 '07 #4
Steve,

Thank you for the link. I've already looked at the article before but I
still can't get it to work. One thing I wanted to ask you. Based on the
article info, does that only work when you instantiate a UserControl from a
Page/ASPX or can you instantiate a UserControl from a parent UserControl?

Thank you,

Mike
"PlatinumBay" wrote:
Mike,

Here is an article explaining UC to UC, UC to Page, and Page to UC
communication as well as using interfaces and event driven communication.
http://www.openmymind.net/communication/index.html#3.3

Let me know if you need some more guidance.

Hope this helps,
Steve
"Mike" <Mi**@discussions.microsoft.comwrote in message
news:19**********************************@microsof t.com...
Steve,

Thank you for your reply. Is there some documentation you can point me to
so
I can see how this is done. I'm pretty new at this so I want to make sure
I'm
doing it right. Just to give you a bit of detail on what I'm trying to do.
I
have 3 UserControls
UC1 has a form and it holds UC2 and UC3. Each of UC is in a saperate Panel
with visibility set to false. I'm trying to setup a "Step 1", "Step 2"
type
of screen so that the user fills in the info step by step. And each of the
UserControls holds different fields of info the user has to fill. I have
everything working except trying to make UserControls communicate with
each
other. I appreciate your help on this.

Thank you,

Mike
"PlatinumBay" wrote:
Mike,

To talk from the child usercontrol to the parent, try using events.

To talk from the parent to the child, you can reference the child object,
and call a method or property.
Hope this helps,

Steve

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
Just wondering if someone can help me out. I'm building a web app that
uses
UserControls for different forms etc. I have a few UserControls that
are
embeded and I want to be able to call/pass data from the parent
UserControl
to the child UserControl(s). I'm using framework 1.1 and I can't use
2.0
becuse of the hosting package I currently have. Is there any way I can
do
this? I've looked everywhere for a good explanation on calling
UserControl
properties/methods from embeded UserControls but I can't seem to find
anything. Any help would be appreciated.

Thank you,

Mike



Jun 5 '07 #5

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

Similar topics

0
by: Jack | last post by:
Hello everyone, I have an event the kicks off from way down inside a user control. It is 4-5 levels deep, i.e. me.parent.parent.parent.parent.parent is the main form. The event needs to be able...
5
by: jen_designs | last post by:
How do I create custom controls for an embeded video. I need stop, play, pause, etc. Any thoughts?
7
by: John Ortt | last post by:
Hi there, I am trying to do a two level embeded query but it is causing Dr Watson errors. The line which is causing the problem is: CFCDeci: (Select sum (FlexChangeDeci) FROM as WHERE (....
1
by: Earl Teigrob | last post by:
I have a DataGrid that needs to set many properites on its embeded controls in the ItemTemplate and EditItemTemplate Templates. I have a choice between using the inline <%# %> or the OnItemCreated...
3
by: Crirus | last post by:
Hi This is the given: I havea server, and a html eith a activeX embeded. There is a way to prevent downloading the file each time the browser acces that page..or this behaviour is by default? I...
6
by: Dominique | last post by:
Hi all, I'm using .NET v1.1 and the scenario I have is as follows... I have IE as an ActiveX control embedded in may C# App. I generate a HTML file dynamically and within the HTML file I embed a...
2
by: dhirajgaherwar | last post by:
Hi everybody, Can anyone tell how to call a standard "Find and Replace dialog box" while my application (embeded word aplication) is at run time. Is there any embeded somewhere ?? or do i have to...
0
by: Mini12321 | last post by:
ok, so ive built a simple console interpretor in C#. Now it works all how I want it to, but here what the users gets after IDE encrypts files: =<app dir> ==users_app.exe ==app_code.txt ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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?
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...

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.