I come around a situation where i need to verify that RadScriptManager exists in the page?
This situation occurred when there is Master page and child pages. Some child pages has RadScriptManager added but others has not added RadScriptManager Control in the page
To Resolved this issue and add RadScriptManager into Master Page use below code
This situation occurred when there is Master page and child pages. Some child pages has RadScriptManager added but others has not added RadScriptManager Control in the page
To Resolved this issue and add RadScriptManager into Master Page use below code
if (Telerik.Web.UI.RadScriptManager.GetCurrent(Page) == null) { placeHolder.Controls.Add(new Telerik.Web.UI.RadScriptManager()); }
No comments:
Post a Comment