Home > Script Manager

How to added Script Manager Dynamically before Any Control Need its in asp.net?

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)             {                 //   

This Article is TAGGED in , . Read more