Re: Raising Events on User Control loaded with LoadControl

J

Jonel Rienton

Greg said:
I have many user controls loading into a web page using
Page.LoadControl

However, I'm unable to figure out how to raise an event
when a button is click or a check box is checked. I can
have upto a hundred user controls on a single page and
AutoPostBack isn't an option.

I have no problem with raising events when an user control
is dropped on the aspx page.

Raising events is my ONLY option.

Greg,

You can write some events in your usercontrol and have the parent page
subscribe to those events as the usercontrols are loaded dynamically.

hth,
Jonel
 
W

Will

I'm having this same problem.. How would you code the
page to subscribe to an event in the UserControl?
 

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,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top