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

Label on masterpage

3 Answers 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 16 Jul 2009, 05:30 PM
Hi,

I have a masterpage application.
On the masterpage I have 2 asp:Label controls.
In codebehind (page load) I set them to a session variable.
So if in a contentpage is something to tell on the master - I just set that session variable.

Now my problem - when I work with ajax manager I thought that this would be the right setting:
<telerik:RadAjaxManager ID="ramManager" runat="server" DefaultLoadingPanelID="alpPan1" UpdatePanelsRenderMode="Inline" RequestQueueSize="6">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="ramManager">  
            <UpdatedControls> 
            <telerik:AjaxUpdatedControl ControlID="lblOne" /> 
            <telerik:AjaxUpdatedControl ControlID="lblTwo" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
But this results in a "the controls collection can't be changed..." error.
I have nothing on my content page so the code above produces this problem.

Any idea how I can achive this?
This == two labels displaying information (from session state) on the masterpage

Regards

Manfred

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 22 Jul 2009, 08:43 AM
Hi ManniAT,

Try wrapping your client code into RadCodeBlock and see if it solves the error.
Let me know how it goes.

Regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
ManniAT
Top achievements
Rank 2
answered on 22 Jul 2009, 08:46 AM
Hi,

I have no client code at all.

Regards

Manfred
0
Iana Tsolova
Telerik team
answered on 22 Jul 2009, 02:41 PM
Hello ManniAT,

Could you please send me a sample that replicates the error as I am not able to replicate in on my side?
Additionally, you can check if you have not encountered the issue described here.

All the best,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or