I have developed a usercontrol in Visual Studio with a GridView and some buttons. I wan´t to have AJAX functionality on my site so i wrapped all the controls in a UpdatePanel. But when i have uploaded my control to Umbraco and loading the webpage and click on some of the buttons inside the UpdatePanel my site doesn´t have any AJAX funtionality, the page reloads.
I have done a search on Google but after many hours of reading through forum threads i can´t get it to work and need some help.
What i can understand the problem is with the Scriptmanager that i use in my usercontrol. I have added ?umbdebugshowtrace to the url and have traced the following message:
Error adding macro GridView1 Only one instance of a ScriptManager can be added to the page. at System.Web.UI.ScriptManager.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at umbraco.presentation.templateControls.Macro.CreateChildControls()
So i deleted the Scriptmanager inside my usercontrol but then Umbraco complains about that i don´t have any Scriptmanager. I have read that the Master template automatically have an Scriptmanager on the page and that it´s possible to disable it, but how? I have created a template that has 'None' as Master template. On my usercontrol i use some JQuery function calls, does it matters?
I´m using Umbraco version umbraco v 4.5.0 (Assembly version: 1.0.3827.19799)
Problem with AJAX and usercontrol.
I have developed a usercontrol in Visual Studio with a GridView and some buttons. I wan´t to have AJAX functionality on my site so i wrapped all the controls in a UpdatePanel. But when i have uploaded my control to Umbraco and loading the webpage and click on some of the buttons inside the UpdatePanel my site doesn´t have any AJAX funtionality, the page reloads.
I have done a search on Google but after many hours of reading through forum threads i can´t get it to work and need some help.
What i can understand the problem is with the Scriptmanager that i use in my usercontrol. I have added ?umbdebugshowtrace to the url and have traced the following message:
Error adding macro GridView1
Only one instance of a ScriptManager can be added to the page.
at System.Web.UI.ScriptManager.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at umbraco.presentation.templateControls.Macro.CreateChildControls()
So i deleted the Scriptmanager inside my usercontrol but then Umbraco complains about that i don´t have any Scriptmanager. I have read that the Master template automatically have an Scriptmanager on the page and that it´s possible to disable it, but how? I have created a template that has 'None' as Master template. On my usercontrol i use some JQuery function calls, does it matters?
I´m using Umbraco version umbraco v 4.5.0 (Assembly version: 1.0.3827.19799)
/Robert
I´m quite new to Umbraco and .NET so if you have any solution to my problem please give me it in a well explained format!
is working on a reply...