I want to load user control but have all the events managed by the loading page. I.E. I want to use CommandName and CommandArgument to run a switch/select and manage all my events in one central event. Anyone know about this?
Printable View
I want to load user control but have all the events managed by the loading page. I.E. I want to use CommandName and CommandArgument to run a switch/select and manage all my events in one central event. Anyone know about this?
On my page or usercontrol that loads usercontrols I would have a single CommandEvent for clicks. Now when I load my user control onto the page I need to asign it's child controls that should use the common click to do so. The CommandName and CommandArgument would either be set already or get set then. I just have to make sure I can reach the control to asign the event handler.
Sound good?