How to add a trigger to Updatepanel where the event for the trigger is inside User Control inside Repeater?

I have a UserControl called CustomerFinder for finding customers. And inside the repeater there is a "ADD" button. I created an event handler for Repeater_ItemCommand. Because I'm going to use it on another page.

On another page, I use this user control that is not in the UpdatePanel. For selected clients there is an update panel (when they click the "Add" button, a client is selected)

When they press the ADD button located in the UserControl control panel, I want to update it myself.

alt text http://www.barbarosalp.com/questions/updatePanelcommand.png

As you see above, Intellisense can get the name of the event OnrptCustomersCommand "

alt text http://www.barbarosalp.com/questions/updatePanelcommand1.png

And this is a trigger ...

I get the error "could not find the event" OnrptCustomersComman "

How can i do this? thanks in advance

+3
source share
2 answers

Thanks to Michel Knishkern for his reply.

But I also worked my way :)

Just remove the two "On" characters from the event name.

OnrptCustomersEvent rptCustomersEvent

Thanks again

+1
source

ucCustomerFinder asyncpostbacktrigger pnlSelectedCustomers.Update() Repeater_ItemCommand

+3

All Articles