Hi Brenden,
Thank you for your answer.
Actually, I have implement web user control with this methodology only. I mean we are setting up relevant properties in OnContentLoaded() method.
I have applied following two solution to get it done.
Solution 1:
This solution is suggested by Kentico support team.
Instead of using default UpdatePanel use CMSUpdatePanel.
Need to replace <asp:UpdatePanel ID="UpdatePanel1" runat="server"> By <cms:CMSUpdatePanelID="UpdatePanel1" runat="server">
Solution 2:
Add following method in your code behind file and add OnUnload="UpdatePanel_Unload" in
UpdatePanel
protected void UpdatePanel_Unload(object sender, EventArgs e) {
MethodInfo methodInfo = typeof(ScriptManager).GetMethods(BindingFlags.NonPublic | BindingFlags.Instance)
.Where(i => i.Name.Equals("System.Web.UI.IScriptManagerInternal.RegisterUpdatePanel")).First();
methodInfo.Invoke(ScriptManager.GetCurrent(Page),
new object[] { sender as UpdatePanel });
}
<asp:UpdatePanel ID="UpdatePanel1" runat="server" OnUnload="UpdatePanel_Unload">