Monday, March 26, 2012

many webusercontrols responding to one event

I am trying to create a page with many of the same webusercontrols that
I can have all my dynamically created and I want each of those
webusercontrols to respong to one event on the page.

How can I do this?

Making each one of my webusercontrols respond to one event globally.
So 1 event fires and all web user controls respond to it.

Ed,create a control to fire the event. then all webcontrols register a
handler for the common event. say you have a button, then all the
webcontrols can register a handler (delgate) of the buttons onclick.

-- bruce (sqlwork.com)

GenCode wrote:

Quote:

Originally Posted by

I am trying to create a page with many of the same webusercontrols that
I can have all my dynamically created and I want each of those
webusercontrols to respong to one event on the page.
>
How can I do this?
>
Making each one of my webusercontrols respond to one event globally.
So 1 event fires and all web user controls respond to it.
>
Ed,
>

0 comments:

Post a Comment