Label on masterpage

4 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 16 Jul 2009 Link to this post

    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
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 22 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 22 Jul 2009 Link to this post

    Hi,

    I have no client code at all.

    Regards

    Manfred
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 22 Jul 2009 Link to this post

    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.
Back to Top