locked
Asp:Timer & ajax Update panel not working on server. RRS feed

  • Question

  • User-873890331 posted

    Hello ,

    I just take a timer control to refresh update panel on timed interval . Its working fine on local system but when i published code on server, its not working . I am not getting any error on page but update panel is not refreshing on timed interval . and when i open browser error console window i see the follwing error many times

    com is undefined

    chrome://vidbar/content/downloader.js

    Thanks & Regards

    Shwetamber

    Friday, June 1, 2012 8:31 AM

Answers

  • User555306248 posted

    Hi,

    Please using ToolkitScriptManager instead of ScriptManager.

    And also make sure you install the correct version of the AjaxControlToolkit:

    Version 3.0.20229 2008-02-29 release of the AJAX Control Toolkit targets the official release of .NET Framework 3.5 and Visual Studio 2008.

    Version 1.0.20229 You can also download the Toolkit for .NET Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005.

    Version 3.0.40412

    April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.

    Version 4.1.51116.0

    Nov 16 2011 release of the AJAX Control Toolkit for ASP.NET 4.0 and Visual Studio 2010

    Then you could add the Ajax Control Toolkit to the VS Toolbox step by step at:http://www.asp.net/ajaxlibrary/act.ashx.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 3, 2012 11:11 PM

All replies

  • User-873890331 posted

    Please do reply anyone ... :(

    Saturday, June 2, 2012 3:44 AM
  • User555306248 posted

    Hi,

    Please using ToolkitScriptManager instead of ScriptManager.

    And also make sure you install the correct version of the AjaxControlToolkit:

    Version 3.0.20229 2008-02-29 release of the AJAX Control Toolkit targets the official release of .NET Framework 3.5 and Visual Studio 2008.

    Version 1.0.20229 You can also download the Toolkit for .NET Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005.

    Version 3.0.40412

    April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.

    Version 4.1.51116.0

    Nov 16 2011 release of the AJAX Control Toolkit for ASP.NET 4.0 and Visual Studio 2010

    Then you could add the Ajax Control Toolkit to the VS Toolbox step by step at:http://www.asp.net/ajaxlibrary/act.ashx.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 3, 2012 11:11 PM
  • User78336405 posted

    Hi,

    Do you test with IE?

    And also post some related code.

    Tuesday, June 5, 2012 4:12 AM
  • User-1658732316 posted

    Having the same issue.

    Found any solution?

    Wednesday, June 27, 2012 3:34 PM
  • User-873890331 posted

    Hi shilp,

    My Timer Interval is 1 sec. So every second request goes to server and Update panel should refreshed . but might be round trip time is more then 1 sec. So before refresh the update panel another request is gone from page. I thing i am doing some mistake . please try another solution if you are trying the same.

    Thanks & Regards
    Shwetamber

    Thursday, June 28, 2012 1:05 AM
  • User1155468890 posted

    it is working in locally on all browsers but when i am putting this to server it is not working in IE but is working in chrome and FirFox, so please help me out from this problem?

    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="2000">
    </asp:Timer>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </ContentTemplate>
    <Triggers>

    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />

    </Triggers>
    </asp:UpdatePanel>
    </div>

    protected void Timer1_Tick(object sender, EventArgs e)
    {
    Label1.Text = DateTime.Now.ToString();
    }

    Thursday, December 19, 2013 1:58 AM