0

Before someone marks this as a duplicate, I have looked at every other question I could find on this and only one indirectly addresses what I'm trying to do and it doesn't work for some reason.

I have a Telerik drop down menu control in a user control that is embedded main page (The user control is not dynamically loaded).

I do the following as I've seen in other posts:

    AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
    trigger.ControlID = ribbonMain.menuDomainSelect.ID;
    trigger.EventName = "ItemClick";
    upnlPanelContent.Triggers.Add(trigger);

This code runs fine but I get an error when the page loads:

A control with ID 'menuDomainSelect' could not be found for the trigger in UpdatePanel 'udpnlContentTitle'. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.InvalidOperationException: A control with ID 'menuDomainSelect' could not be found for the trigger in UpdatePanel 'udpnlContentTitle'.

I have the drop down in an update panel but I also want to trigger the other update panel to update which is in my page. They are set to conditional update.

The other examples I seen on SO have a user control in a master page so I don't see why this wouldn't work.

KingOfHypocrites
  • 9,316
  • 9
  • 47
  • 69
  • Your answer might be here, please check this: http://stackoverflow.com/questions/417131/trigger-an-update-of-the-updatepanel-by-a-control-that-is-in-different-contentpl – Alexander Jun 18 '13 at 05:30
  • I'm doing the same thing but it doesn't work. I've tried putting it in both the init and the load events and neither give an error when the code is hit, but the it fails once the page is rendered. – KingOfHypocrites Jun 18 '13 at 12:53

0 Answers0