If you are trying to change the title of your content page and its not changing and always showing "Untitled Page" then you are probably committing a stupid mistake.
Here i will tell you what mistake are you doing and how to rectify it.
If you are working with old asp.net versions then it will not insert the content place holder in the head section of the master page.It will only insert the content place holder in the body section of the master page.
Also by default there will be a title entry in the master page <head> section, this is the entry which will always be shown no matter whatever title you give to your content page.
So the solution to this problem is follow the steps given below:-
- Make sure that there is a content place holder defined in the head section of the master page
Here we have a ContentPlaceHolder having an id of "head" defined
Next make sure that you delete the <title></title> from the head section of your masterpage.
Thirdly make sure that while creating a content page in the extreme right of the bottom of the selection wizard you select "Select a masterpage".
This will automatically create two content place holders for you if you already have put those two in your original master page.
So now in the content place holder on the content page which in our case will be having ContentPlaceHolderID as "head" is the place where we will put our <title></title>
<%@ Page Title="" Language="C#" MasterPageFile="~/CatalogueMain.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <title>2Bok Home</title> </asp:Content>
So now go ahead and put the title as anything .......And that's it run your content page and you will see the title applied.
This was a very simple workaround and was meant only for beginners who sometimes get confused.
Update:- Second Method which is even Simpler
Thanks to Lee as i forgot to mention this method.
Just in the content page in the @ Page Directive in the Title Section provide a valid Title and this will become the title for your content page.