many webusercontrols responding to one event

G

GenCode

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,
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top