How to Add Page Title on their browser's title bar in SharePoint Programatically and Customly

Advertisement

Add Page Title Customly 

        
        Navigate to SharePoint Designer -> Open your Page Layout -> In Content "PlaceHolderPageTitle" place drag and drop "ListItemProperty" in the toolbox, server controls.

we have something like the following:

<SharePointWebControls:ListItemProperty runat="server" id="ListItemProperty1"/>

In this we can add "Property", I am adding "BaseName" Property to show the title on their browser's title bar in the Page.

<asp:Content id="Content1" ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
 <SharePoint:ListItemProperty ID="ListItemProperty1"  Property="BaseName" maxlength="40" runat="server"/>
</asp:Content>

Add Page Title Programatically 

           

              I  created Custom PageLayout for my pages programatically, so in that PageLayout page i call "ListItemProperty" in PlaceHolderPageTitle" place.

<asp:Content id="Content1" ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
 <SharePoint:ListItemProperty ID="ListItemProperty1"  Property="BaseName" maxlength="40" runat="server"/>
</asp:Content>




Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment