G
Guest
Ok...I've been looking for an answer to this problem and can't seem to find
one...Framework 1.1 mind you.
I have a base class that inherits from UserControl. I have 5 and soon to be
12 user controls that derive from this base class that represent US States
with appropriate business logic and rules. Inside the base class is an event
that is raised whenever you click a checkbox in the datagrid of each of the
user controls...no biggie... This event is to be seen by the page so that it
can take appropriate action upon handling the event (such as disabling
selections, etc...) however the page cannot see this event to handle it.
Now another event needs to be fired by the page when you make a selection in
one or more dropdowns that are then handled by each of the user controls as
appropriate. For example, if one dropdown value gets selected, each state
user control will compare its business rules to the selection and uncheck a
checkbox in its grid if the rules dictate. However, this event is never seen
by the control.
My problem is that I don't know where to define these events so that the
page and the controls can see and use them. The UC event i've defined in the
baseclass so that all the derived controls can access it through a protected
method. However, I cannot construct a handles on the page because the page
can't see it. Likewise I cannot construct a handles in the controls because
they cannot see the page event.
Any ideas or need for further info?
one...Framework 1.1 mind you.
I have a base class that inherits from UserControl. I have 5 and soon to be
12 user controls that derive from this base class that represent US States
with appropriate business logic and rules. Inside the base class is an event
that is raised whenever you click a checkbox in the datagrid of each of the
user controls...no biggie... This event is to be seen by the page so that it
can take appropriate action upon handling the event (such as disabling
selections, etc...) however the page cannot see this event to handle it.
Now another event needs to be fired by the page when you make a selection in
one or more dropdowns that are then handled by each of the user controls as
appropriate. For example, if one dropdown value gets selected, each state
user control will compare its business rules to the selection and uncheck a
checkbox in its grid if the rules dictate. However, this event is never seen
by the control.
My problem is that I don't know where to define these events so that the
page and the controls can see and use them. The UC event i've defined in the
baseclass so that all the derived controls can access it through a protected
method. However, I cannot construct a handles on the page because the page
can't see it. Likewise I cannot construct a handles in the controls because
they cannot see the page event.
Any ideas or need for further info?