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

Update Usercontrol from Usercontrol

3 Answers 87 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Scott Marx
Top achievements
Rank 1
Scott Marx asked on 02 Feb 2011, 11:19 PM
I am having trouble updating a Control within a UserControl from another UserControl.

Layout;

MasterPage
-Page.aspx
    -ASP:Panel
        -RadPanelBar
            -Items
                -RadPanelItem
                    -UserControl1
                        -RadGrid
                            -Button in CommandItemTemplate (When button command completes needs to update controls within UserControl2
            -Items
                -RadPanelItem
                    -UserControl2
                        -ASP:Panel
                            -ASP:Label (this is the control that needs to be updated.)

I have tried to find the control with;

UserControl uc = (UserControl)Page.FindControl("UserControl1"); But it comes back with a null reference.

Any suggestion or pointers would be great.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Feb 2011, 11:17 AM
Hello Scott Marx,

Please refer to the following help article, which elaborates on this subject, for more information about how to achieve your goal:
MasterPages: initiating requests from one ContentPlaceHolder and loading/updating controls in another

I hope this gets you started properly.

Greetings,
Pavlina
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.
0
Scott Marx
Top achievements
Rank 1
answered on 03 Feb 2011, 08:01 PM
I have tried that, but when trying to use the FindControl I get a null value.

Scott
0
Pavlina
Telerik team
answered on 07 Feb 2011, 03:05 PM
Hello Scott,

At this point in order to progress in the resolution of this matter it will be best if you open a formal support ticket and send us a sample where we could replicate the described behavior. Thus we will be able to debug it locally and get to the source of the issue.

Kind regards,
Pavlina
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
Scott Marx
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Scott Marx
Top achievements
Rank 1
Share this question
or