Cross user control communication via parent control

Z

zb

Here is the page architecture:
Page loads multiple user controls (including nested user controls)
dynamically based on parameters provided into place holders. Note: The
page only has the logic to load the user controls and subscribe to
custom event exposed in the user controls.

Scenario:
User comes to this page fills the fields generated by multiple user
controls and then hits "Save" button in one of the forms.

Question:
- How can all the information be collected in the control that has the
save button and saved to a repository?
- Is there a better practise?
- How can all the user controls be "wired" together to cross
communicate?

An example will be great help.

- Working with ASP.Net 2.0 using C#

Thanks in advance.
PS: Dunno why it did not publish earlier.

Cross user control communication via parent control
 
Joined
Feb 8, 2011
Messages
1
Reaction score
0
Capture Page Event in Web User Control

You can raise an event in an ASP.NET page and capture or handle the event in one or more web user controls.

The following blog entry should help.

asp-net-elephant.blogspot.com/2011/02/capture-page-event-in-web-user-control.html
 

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

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top