Introduction
Page Title is fully depend on the separate page itself. If we have a content
page of any master page then we can write title in separate page of separate
title. If we not write title in content page then Master Page title will
automatically displayed. For example, the code given below is displaying the
title separately for content page.
<%@
Page Title="MINDCRACKER"
Language="VB"
MasterPageFile="~/MasterPage/MasterPage.master"
AutoEventWireup="false"
CodeFile="Default.aspx.vb"
Inherits="MasterPage_Default"
%>
<asp:Content
ID="Content1"
ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content
ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
Now if we delete Title from above code and run the project then title will
displayed by default from Master Page. Here is the master page with title.
<%@
Master Language="VB"
CodeFile="MasterPage.master.vb"
Inherits="MasterPage"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head
runat="server">
<title>MINDCRACKER
_MASTER_PAGE_TITLE</title>
<asp:ContentPlaceHolder
id="head"
runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form
id="form1"
runat="server">
<div>
<asp:ContentPlaceHolder
id="ContentPlaceHolder1"
runat="server">

Join the conversation! Your thoughts help the community grow.