The control with ID ‘updpnlRightNav‘ requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Solution :
1) Add a PlaceHolder on This Page Then …Create Event on Update Panel OnInit
<asp:PlaceHolderID=”pccScriptManager“runat=”server”></asp:PlaceHolder>
<asp:UpdatePanelID=”updpnlRightNav“runat=”server” OnInit=”updpnlRightNav_Init”>
2)
protectedvoid updpnlRightNav_Init(object sender, EventArgs e)
{
if (ScriptManager.GetCurrent(Page) == null)
{
// ScriptManager scriptManager = new ScriptManager
ScriptManager scriptManager = newScriptManager
{
ID = String.Concat(“ScriptManager”, DateTime.Now.Date.Ticks),
EnablePartialRendering = true,
ScriptMode = ScriptMode.Release
}; if (this.pccScriptManager != null)
{
this.pccScriptManager.Controls.AddAt(0, scriptManager);
}
}
}
Enjoy 🙂