Declarative event handling from ASP.NET user control to page?

See this previous post: stackoverflow.com/questions/943794/handl... Edit - added based on your comment I should have read the question more clearly As far as having a UserControl raise an event that the containing page can respond to, I do not believe that this can be done declaratively Unless my knowledge is just lacking, the only way to accomplish this is by explicitly creating an event in the control and then handling it (by coding the event handler) on the parent page, as shown in the example I linked to.

See this previous post: stackoverflow.com/questions/943794/handl... Edit - added based on your comment I should have read the question more clearly. As far as having a UserControl raise an event that the containing page can respond to, I do not believe that this can be done declaratively. Unless my knowledge is just lacking, the only way to accomplish this is by explicitly creating an event in the control and then handling it (by coding the event handler) on the parent page, as shown in the example I linked to.

Sorry, either I don't follow the other posts or they don't explain my situation (especially since I don't see any HTML and declarative attributes assigning event handlers. – mycall Sep 30 '09 at 3:13 Thanks for the quick reply. Since I'm dynamically generating the DropDownList within the control, how could the control know what page event handler to call, without passing in the event handler.

I guess I'm over my head here. – mycall Sep 30 '09 at 3:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions