Add the follwing content place holder in the top of your code if not exist
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
Add Title here
</asp:Content>
You can get title dynamic by add any of this tags into "PlaceHolderPageTitle"
<SharePoint:ListProperty Property="Title" runat="server"/>
<SharePoint:ListItemProperty Property="Title" runat="server"/>
<SharePoint:ProjectProperty Property="Title" runat="server"/>
<SharePoint:ListFormPageTitle runat="server"/>
Is there any way to set this heading to a variable declared within a custom webpart?
ReplyDeleteThis post helped me. Thank You !
ReplyDeletemy custom pages didn't have any titles and I found that I should you ContentPlaceHolderPageTitle.