Problem with ScriptManager
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">I am new to
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">coolite and try to make a simple mvc page. I created the standard mvc website project and added all necessairy entries in the web.config. In the Site.Master page I added first
Code:
<ext:ScriptContainer runat="server" />
(where no error occurred) and then
Code:
<ext:ScriptManager ID="ScriptManager1" runat="server" />.
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">After adding the script manager I received always the error
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">
Code:
Ext.UpdateManager.defaults is null
Line: 9
Char: 1
Error: 'Ext.UpdateManager.defaults' is null or no object' Code:0
on every page.
Unfortunately that error causes other side-effects and is therefore not negligible.
What am I doing wrong?
And yes, I also tried the Coolite.ToolKit.MVC sample which works well on my machine.
Thanks for your help
Hans Weber
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt">
RE: Problem with ScriptManager
Hi,
Any reasons to use ScriptContainer control? It used if need to define place where scripts should be rendered. By default all scripts rendered to the Header
RE: Problem with ScriptManager
As well, please ensure you add the coolite.axd IgnoreRoute as demonstrated in the Global.asax.cs file of the coolite mvc project (http://mvc.ext.net/).
Hope this helps.
RE: Problem with ScriptManager
Hi all,
Thanks for your help. Adding the ignore route with ....colite.axd in Global.asax.cs was the right thing. The code sample you see below, is the correct code.
Code:
public void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{exclude}/{coolite}/coolite.axd");
// Default route
routes.MapRoute("Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults);
}
Best regards
Hans Weber