T
Tom Rowton
This one has me a bit confused and I'm not finding what I
need in the MSDN or by searching these forums, so here
goes...
I have a rather large, complex code-in-page WebForm
(don't ask) and a section of that Form is 4 or 5
ASPanels pretending to be a set of Tabs, each with its
own section of the form.
In order to simplify managing this page, since code-
behind is not an option (don't ask, not my fault), I
thought I had the solution...
I would convert each Panel into a User Control.
The problem is that the panels usually depend on at least
one Form Control from at least one other Panel.
I already know about RaiseBubbleEvent() and OnBubbleEvent
() and have used them elsewhere, but they only work going
UP the container heirarchy.
I need to :
1 - (partially) handle an event in the UserControls
(panels), then (partially handle the same event in
ANOTHER UserControl(panel) on the same form/page.
2 - handle an event in a UserControl(panel) BUT be able
to retrieve values from form fields(Controls) in OTHER
UserControls(panels) to help determine how to handle the
event.
3 - (partially) handle an event in the Form(aspx)
depending on values of form controls in the UserControls
4 - manipulate values of form controls in the
UserControls
Like I said, I already know how to Bubble events, but
that only goes up.
The part I am missing is how to "Elbbub" events (bubble,
backwards) or manipulate data in child objects.
The trick is, this is all Code-in-Page and nothing will
convince those in control to return to Code Behind.
Anyone know how to do what I want/need to do?
I have a set of aspx/ascx pages that I can email or ftp
for anyone interested.
need in the MSDN or by searching these forums, so here
goes...
I have a rather large, complex code-in-page WebForm
(don't ask) and a section of that Form is 4 or 5
ASPanels pretending to be a set of Tabs, each with its
own section of the form.
In order to simplify managing this page, since code-
behind is not an option (don't ask, not my fault), I
thought I had the solution...
I would convert each Panel into a User Control.
The problem is that the panels usually depend on at least
one Form Control from at least one other Panel.
I already know about RaiseBubbleEvent() and OnBubbleEvent
() and have used them elsewhere, but they only work going
UP the container heirarchy.
I need to :
1 - (partially) handle an event in the UserControls
(panels), then (partially handle the same event in
ANOTHER UserControl(panel) on the same form/page.
2 - handle an event in a UserControl(panel) BUT be able
to retrieve values from form fields(Controls) in OTHER
UserControls(panels) to help determine how to handle the
event.
3 - (partially) handle an event in the Form(aspx)
depending on values of form controls in the UserControls
4 - manipulate values of form controls in the
UserControls
Like I said, I already know how to Bubble events, but
that only goes up.
The part I am missing is how to "Elbbub" events (bubble,
backwards) or manipulate data in child objects.
The trick is, this is all Code-in-Page and nothing will
convince those in control to return to Code Behind.
Anyone know how to do what I want/need to do?
I have a set of aspx/ascx pages that I can email or ftp
for anyone interested.