More in this section

Forums / Developing with Sitefinity / AJAX manager not working

AJAX manager not working

2 posts, 0 answered
  1. Alessio S.
    Alessio S. avatar
    37 posts
    31 May 2010
    19 Nov 2014
    Link to this post

    I'm  trying to create AJAX enabled usercontrols but I can't get the AJAX manager to work at all in my website (Sitefinity v. 7.2) even in the simples case. I have copied exactly the example from this page:

    I've configured the page to include the script manager and also enabled the viewstate.  But even with the simple code in the example I always get a full page reload when pressing the button. Am I missing something? Here is the code I'm using (tried with both RadAjaxManager and RadAjaxManagerProxy, but there are no other RadAjaxManager instances on the page):

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AjaxTestControl.ascx.cs" Inherits="MySite.CustomControls.AjaxTestControl" %>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="Button1">
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    <telerik:AjaxUpdatedControl ControlID="Label1" />
    <asp:Panel ID="Panel1" runat="server">
        <asp:Button ID="Button1" runat="server" Text="Update Button" OnClick="Button1_Click" />
        <asp:TextBox ID="TextBox1" runat="server" Text="Update me"></asp:TextBox>
    <asp:Label ID="Label1" runat="server">Me too</asp:Label>

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    namespace MySite.CustomControls
        public partial class AjaxTestControl : System.Web.UI.UserControl
            protected void Page_Load(object sender, EventArgs e)
            protected void Button1_Click(object sender, EventArgs e)
                TextBox1.Text = "Updated!";
                Label1.Text = "Updated too!";

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    24 Nov 2014
    Link to this post
    Hello Alessio,

    What I can suggest to test on your side is to declare the RadScriptManager in your master page template and test the behavior again.

    Another option will be to use the SitefinityUpdatePanel and wrap the controls or use ASP UpdatePanel. You may take a look at the following resources for more details using the SitefinityUpdatePanel:

    Using Update Panel in Sitefinity
    Using Update panel in Sitefinity - Part 2

    Sabrie Nedzhip
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered