Problem with ScriptManager

  1. #1

    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

    <ext:ScriptContainer runat="server" />
    (where no error occurred) and then
    <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">
    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">
  2. #2

    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
  3. #3

    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.


    Geoffrey McGill
    Founder
  4. #4

    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.



    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

Similar Threads

  1. Problem With ScriptManager on MasterPage
    By reiben in forum 1.x Help
    Replies: 1
    Last Post: Jun 12, 2010, 8:53 PM
  2. ScriptManager.AddScript()
    By tonymayoral in forum 1.x Help
    Replies: 0
    Last Post: Feb 04, 2010, 4:28 PM
  3. ScriptManager in 2.0 app Causes CSS to fail
    By Tbaseflug in forum Bugs
    Replies: 0
    Last Post: Apr 22, 2009, 1:52 PM
  4. ext:ScriptManager use???
    By pearl in forum 1.x Help
    Replies: 2
    Last Post: Mar 03, 2009, 8:03 AM
  5. Scriptmanager changes css
    By kabla in forum 1.x Help
    Replies: 2
    Last Post: Mar 28, 2008, 2:47 PM

Posting Permissions