• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Content Pages Inheriting Master Page Title

Whenever I created a content page based on a master page, it has its title set to "Untitled Page", it does not inherit the title set in the master page.
Is this a normal behavior, or there is a way to let content pages inherit the master's page title?

Thanks.
0
JessyEzzy
Asked:
JessyEzzy
  • 2
1 Solution
 
gregg1ep00Commented:
If you remove the Title attribute from the <%@Page %> tag in your content page, then it will inherit the title of the master page.
0
 
meomarCommented:
I do not think you would need to it to inhrit from the master page if you are to implement multiple pages. Then, they will all have the same name.
0
 
gregg1ep00Commented:
One thing that I typically do for a site is have the Master page title be something site-wide, like the company name.  And then for each content page, you can do something like this in the PreRender handler:

if ( !IsPostBack )
  Title = Title + " | HOME";

That way, you have the site-wide company name, plus the name of the content page you're currently on.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now