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.
LVL 3
JessyEzzyAsked:
Who is Participating?
 
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.

All Courses

From novice to tech pro — start learning today.