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

Lost page Title

7 Answers 61 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Erik Paquet
Top achievements
Rank 1
Erik Paquet asked on 29 Oct 2007, 03:29 AM

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>

7 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Nov 2007, 02:34 PM
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
0
Nik
Top achievements
Rank 1
answered on 28 Sep 2009, 08:12 PM
Was this ever resolved? I'm having a similar issue.
0
Georgi Tunev
Telerik team
answered on 30 Sep 2009, 12:32 PM
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.
0
Richard
Top achievements
Rank 1
answered on 14 Oct 2009, 04:59 PM

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.

0
Nik
Top achievements
Rank 1
answered on 14 Oct 2009, 05:09 PM
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 

0
Svetlina Anati
Telerik team
answered on 19 Oct 2009, 02:31 PM
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.
0
Dmitrii
Top achievements
Rank 1
answered on 27 May 2019, 12:50 PM

Hello,

I met the same problem in SharePropoint 2013.
Solution was real easy: you need just to remove all spaces in SharePoint:PageTitle tag 

Tags
ToolTip
Asked by
Erik Paquet
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Nik
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Svetlina Anati
Telerik team
Dmitrii
Top achievements
Rank 1
Share this question
or