This is a migrated thread and some comments may be shown as answers.

Incorrect ClientID used to find Update Panel

4 Answers 66 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 08 Sep 2011, 07:21 AM
Since upgrading our Telerik controls in July (from version to 2010.3.1317.40 to 2011.1.519.40) we have intermittently received the following error in our logs:

Sys.InvalidOperationException: Could not find UpdatePanel with ID 'myMasterPage_ctl18_myMasterPage_cph_myUserControl_5_anotherUserControl_pnlMyPanelPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

I have not been able to replicate the problem - these errors are coming from my users and I am seeing them in my logs. They started occurring the day that I upgraded the Telerik dll.

I understand that usually errors of this type occur if the ajaxified control is invisible.
However, I am certain that the control is not invisible. There is no reason it should be invisible. To try and debug the issue, I have setup additional logging during the OnPreRender phase like this:

protected override void OnPreRender(EventArgs e)
{
    _log.Debug("Is pnlMyPanel visible: " + pnlMyPanel.Visible);

    base.OnPreRender(e);
}

The ajaxified panel is always visible according to these logs, yet the error is still occurring.

Any tips how I can go about solving this issue?

UPDATE: Sorry, the title of this post is wrong. The ClientID of the ajaxified panel is correct, but for some reason RadAjax is unable to find the panel.

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 13 Sep 2011, 02:26 PM
Hello Andrew,

The presented error could also appear in cases you have wrapped RadAjaxPanels, RadAjaxPanels into the RadAjaxManager settings or use the both controls for updating the same part of the page. Please ensure that you do not have some of this cases in your application. If this doesn;t helps please post some code which presents your RadAjax settings and the related code behind so we could further research on the issue.


Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Maria Ilieva
Telerik team
answered on 13 Sep 2011, 02:26 PM
Hello Andrew,

The presented error could also appear in cases you have wrapped RadAjaxPanels, RadAjaxPanels into the RadAjaxManager settings or use the both controls for updating the same part of the page. Please ensure that you do not have some of this cases in your application. If this doesn;t helps please post some code which presents your RadAjax settings and the related code behind so we could further research on the issue.


Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andrew
Top achievements
Rank 1
answered on 19 Sep 2011, 03:18 AM
Hi Maria,
We are not using RadAjaxPanels in our code - we only use RadAjaxManager and the AddAjaxSetting method.
Regards
0
Maria Ilieva
Telerik team
answered on 19 Sep 2011, 01:53 PM
Hi Andrew,

In this case could you please open a formal support ticket and send us runnable version of your application which demonstrates the described issue. Thus we will be able to debug it locally and do our best to isolate the root cause of the problem and provide proper solution.

Kind regards,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
Tags
Ajax
Asked by
Andrew
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or