Search code examples
asp.netasp.net-ajaxtriggersupdatepanel

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


I have a UserControl called CustomerFinder for searhing customers. And there is "ADD" button inside the repeater. I have created an eventhandler for Repeater_ItemCommand. Because i am going to use it on the other page.

On the other page, i use this User Control which is not in UpdatePanel. There is an update panel for the Selected Customers(when they click add,customer is selected)

When they click the ADD button which is in the UserControl i want update panel to refresh it self.

alt text
(source: barbarosalp.com)

As you see above Intellisense can get the Event Name "OnrptCustomersCommand"

alt text
(source: barbarosalp.com)

And this is the trigger...

I get an Error "couldnt find the event 'OnrptCustomersComman'"

How can i get it done ? Thanks in advance


Solution

  • Thanks Micheal Knishkern about his answer.

    But i did it work by my way too :)

    Just delete two chars "On" from the Event name.

    OnrptCustomersEvent to rptCustomersEvent

    Thanks again