Add Custom Page Title to Custom SharePoint Page

I have been creating custom pages for Windows SharePoint Services for some time now – which enable me to create powerful SharePoint applications. However, with every custom page I create, the page title is always blank, which results in the title being the URL to that specific web page. Ugly. Here is the solution:

ContentPlaceHolderId

The trick is to add another <asp:Content> tag with the ContentPlaceHolderId set to PlaceHolderPageTitle. This allows you to set a page title for any custom SharePoint page.

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
My Custom Page Title!
</asp:Content>

Thats it!

 

I’m out…

About aaron

IT is not just a job but also a passion. Everything I have accomplished, both personally and professionally, has been generally entertaining, bordering on fun. Some of my projects, such as working with SharePoint Services workflow actions in Visual Studio or building a custom iSCSI SAN using the OpenSolaris, ZFS and COMSTAR, has been quite rewarding. You may think nerd...I think developing a new trend!