Lost page Title

7 posts, 0 answers
  1. Erik Paquet
    Erik Paquet avatar
    35 posts
    Member since:
    Dec 2006

    Posted 28 Oct 2007 Link to this post

    Hi,

    I integrated a dynamic tooltip in a web site that use masterpage, RadMenu, RadPanel, sitemap, etc.

    My pages Title are feed by the sitemap in the MasterPage see code below.

    Each time RadToolTip do a request (ajax), my page title is reset to "Untitled Page".

    Erik

    <script runat="server">  
        public string GetShortCulture()
        { return (CultureInfo.CurrentCulture.ToString()).Substring(0, 2); }
        public bool ShowPnlSearch
        { get { return pnlSearch.Visible; } set { pnlSearch.Visible = value; } }
        public bool ShowpnlBreadCrumb
        { get { return pnlBreadCrumb.Visible; } set { pnlBreadCrumb.Visible = value; } }
        public bool ShowPnlTopOfPage
        { get { return pnlTopOfPage.Visible; } set { pnlTopOfPage.Visible = value; } }
        public bool ShowHlnkAccueil
        { get { return RoImgAccueil.Visible; } set { RoImgAccueil.Visible = value; } }
        public bool ShowSepAccueil
        { get { return lblSep.Visible; } set { lblSep.Visible = value; } }
        public bool ShowPnlMenuSec
        { get { return pnlMenuSec.Visible; } set { pnlMenuSec.Visible = value; } }

        public string GetPageTitle()
        {
            if (SiteMapDataSource1.Provider.CurrentNode != null)
            { return ConfigurationManager.AppSettings["pageTitlePrefixe"].ToString() + SiteMapDataSource1.Provider.CurrentNode.Title.ToString(); }
            else { return Page.Title; }
        }

    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            <%=GetPageTitle()%>
        </title>
        <meta name="abstract" content="<%$ Resources:rscAbstract %>" />
        <meta name="author" content="Erik Paquet" />
        <meta name="distribution" content="global" />
        <meta name="revisit-after" content="5 days" />
        <meta name="copyright" content="<%$ Resources:rscCopyright%>" />
        <meta name="robots" content="follow,index" />
        <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <asp:contentplaceholder id="head" runat="server">
        </asp:contentplaceholder>

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Nov 2007 Link to this post

    Hello Erik,

    I am afraid we are unable to reproduce the problem locally. Can you please try isolating it in a small sample project (please make sure the project can be run) and send it to us in a new support ticket? Once we have a better view over your setup, we will do our best to provide an appropriate solution.




    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 28 Sep 2009 Link to this post

    Was this ever resolved? I'm having a similar issue.
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Sep 2009 Link to this post

    Hello Nik,

    I'm afraid not - we haven't received a project that reproduces this problem. Please send us such sample and we will check it right away.



    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Richard
    Richard avatar
    5 posts
    Member since:
    Jun 2009

    Posted 14 Oct 2009 Link to this post

    I'm having a simiar issue, don't have a project to send but will paste some sample code.
    I'll just note at the beginning that we using a custom skin
    and that the <title></title> tag is in a Master page that serves
    as the template for the entire application.

    I'm losing the title anytime my tooltip manager get's updated.

    The AjaxSettings(Change to Grid updates tooltip manager):

    <telerik:AjaxSetting AjaxControlID="InventoryGrid">
    <UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
    <telerik:AjaxUpdatedControl ControlID="InventoryGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
    </UpdatedControls>
    </telerik:AjaxSetting>


    Tooltip Manager:

    <telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="ManualClose"
    Width="200" Height="150" runat="server" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element" RenderInPageRoot="true"
    Position="MiddleRight" EnableEmbeddedSkins="false" ShowEvent="OnClick">
    </telerik:RadToolTipManager>

     

     

     



    In the Master Page:

     

     

    <title id="PageTitle">
    <asp:ContentPlaceHolder ID="PlaceHolderPageTitle" runat="server" />
    </title>


    So for the Inventory.aspx page, would insert "Inventory Page" in the content placeholder.

    Any help would be appreciated.

  7. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 14 Oct 2009 Link to this post

    I have a feeling its something to do with the Master page title...as ours is using a master page as well. I made a test page that has no master and loads the exact same user control, and the title does not change. We put breakpoints in almost everywhere, especially in the JS files, and ran debug mode...but it never hit any of them.

    Here is how our title gets set with the master on internal pages:
    With Master 
       .SetPageTitle = ltrDescr.Text 
    End With 

  8. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 19 Oct 2009 Link to this post

    Hello guys,

    I am afraid that you describe different scenarios which reproduce the very same problem but we could not understand how exactly to reproduce it and we have not been contacted with reports for such a problem before. In general, the tooltip should not influence any page titles - however, if the AutoToolTipify functionality is turned on, the title attributes of elements are automatically removed and replace with RadToolTips. Since this functionality was turned on by default in older versions of RadControls this is the only thing I can assume that might influence page titles. I tested this but to no avail - the title is still there.

    This being said, I want to kindly ask you to provide the following information:

    1) version of RadControls you reproduce the problem with
    2) Fully runnable sample code of the MasterPage and the ContentPage which can be run without any modifications and which reproduces teh problem
    3) detailed explanations and screenshots of teh actual and teh desired result.

    Once we receive this information, we will analyze the issue and we will do our best to help.

    Sincerely yours,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017