Embeded User Controls

G

Guest

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
 
P

PlatinumBay

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
 
G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top