+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Compatibility with .NET 3.5 UpdatePanel?

Compatibility with .NET 3.5 UpdatePanel?

7 posts, 0 answered
  1. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    04 May 2008
    Link to this post
    I am running Sitefinity V3.2 SP1 on .NET framework 3.5, and am using the AJAX controls included in .NET. The pages render fine within the website, but when attempting to edit the page within Sitefinity, I get the following error.

    Cannot unregister UpdatePanel with ID 'UpdatePanelRotator' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.

    I have the ScriptManager registered in the master page, and the UpdatePanel in a user control. I have also tried the ScriptManager in the user control.

    I see from the following thread that this issue has been identified before, but per the last reply it was fixed for my scenario.

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-thbmc.aspx

    Regards,
    Gary
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    07 May 2008
    Link to this post
    Hi Gary Clarke,

    I tested this scenario but didn't manage to see the behavior you describe. Here's what I did:

    1. Using Sitefinity 3.2SP1, created a new project and migrated it to .NET 3.5.
    2. Created a new master page with ScriptManager in the <form> tag.
    3. Created a user control with an update panel.
    4. Uploaded the master page and created a new page with that template.
    5. Uploaded my user control to the control toolbox and dropped it on the page (which is in edit mode).

    Everything worked fine. I'm attaching my master page and user control. Let me know if I'm doing anything wrong.
    You could send us your user control and master page, so we could test locally.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    07 May 2008
    Link to this post
    I made a mistake when reporting the issue. The user control that contains the UpdatePanel is in my master page, rather than added in a content area. I believe this is still an unsupported scenario--is that correct?

    As a workaround, I will create a ContentPlaceHolder in the master page and add the user control through Sitefinity.

    Thanks for your help,
    Gary
  4. Paul Dain
    Paul Dain avatar
    7 posts
    Registered:
    15 Mar 2006
    29 May 2008
    Link to this post
    I'm currently experiencing the exact same issue as Gary (his revised scenario). Has there been any resolution to this?
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    30 May 2008
    Link to this post
    Hello Paul Dain,

    This scenario is still not supported. This is due to the fact that all controls are dynamically inserted on template/page editing and the update panel could be inserted before the script manager.

    You could use the steps I described in my previous post to achieve this functionality.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    25 Sep 2008
    Link to this post
    so dynamic elements have to be added to the page and not the master page? I suppose they could be added using the template editor instead then?

    are there any plans to support this? I would much rather add the controls directly to the master page... the way I've acheived this is by dynamically adding them to the form:

    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!IsEditingPage()) siteForm.Controls.Add(Page.LoadControl("~/AjaxControl.ascx");   

    where IsEditingPage is a method to determine if I'm in the admin editor, AjaxControl.ascx is the control I want to show on every master page and siteForm is the form tag (with runat="server")...

    this is clumsy for two reasons: I have more than one master page, and this control needs to be on all of them...  and 2) this should be a property of the control, not the master page, shouldn't it? I tried to put the same logic (check for edit mode, cancel load) various ways inside the usercontrol like overriding render, clearing the child controls, making the ajax control invisible and disabling it. all of these methods give me the "Cannot unregister UpdatePanel" error...

    by the way the AjaxControl.ascx is simply a control with a radtooltipmanager on it. I want to be able to display a universal tooltip (like the Feedback links you see on some websites where it's on the corner of every page) so that I can show announcements to all users no matter what page they are on....

    so what do you think the best thing to do here is?

    thanks!
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    30 Sep 2008
    Link to this post
    Hi SelArom,

    We think you could try to accomplish this with the steps described in the KB article RadAjaxManager initialized too late in the page.

    Let us know about the results.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
7 posts, 0 answered