G
Guest
hey all,
below is an excerpt from an article i'm currently reading. the article is
about using WebUserControls and encapsulation.
"Although it is possible to subscribe to the button click event from the
containing page, doing so would break some of the object oriented rules of
encapsulation. A better idea is to publish an event in the user control to
allow any interested parties to handle the event. "
What does it mean to subscribe to the button click event?
thanks,
rodchar
below is an excerpt from an article i'm currently reading. the article is
about using WebUserControls and encapsulation.
"Although it is possible to subscribe to the button click event from the
containing page, doing so would break some of the object oriented rules of
encapsulation. A better idea is to publish an event in the user control to
allow any interested parties to handle the event. "
What does it mean to subscribe to the button click event?
thanks,
rodchar