Solved

Content Pages Inheriting Master Page Title

Posted on 2006-06-20
3
249 Views
Last Modified: 2008-03-06
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
Comment
Question by:JessyEzzy
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
gregg1ep00 earned 20 total points
ID: 16945948
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
 
LVL 3

Expert Comment

by:meomar
ID: 16946544
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
 
LVL 4

Expert Comment

by:gregg1ep00
ID: 16946603
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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question