This week I got a small question from the CAML girl here at U2U asking how she could change the title of one of the Web Part pages she created for a SharePoint project. It may sound like a trivial question but it is often searchinf for these little things that take a lot of time.

We often use the technique of the document library as the container for a 'SharePoint application' consisting of Web Part pages. Let me just review this technique before we move on to the solution to the CAML girl's question. Just create a document library in one of your team sites and set the document template to Web Part Page.

Next, you can create new documents (the pages of your application).

You select a layout (note that you can create your own custom layouts if you want).

Next, we of course use the SmartPart to host all of the building blocks (the user controls) of the page. You can navigate from one page to another page in your application just by using the hyperlink of the page (have a look in the address bar).

 

This way you can build very contained but rich and powerful ASP.NET applications that run in the context of SharePoint and leverage all of the SharePoint infrastructure.

Now back to the question. How do we change the name (Page1) of the page above?

The title of the page can be modified by opening the properties of the Web Part Page Title Bar Web Part (gosh.. nice name).

The toolpart allows you to change the title, caption and description of the page.

Hup, there you go.