By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,835 Members | 1,959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,835 IT Pros & Developers. It's quick & easy.

Embeded User Controls

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.