0

I set the title of my master page so all of my content pages would have the same default title.

However, I wanted a couple of the pages to have a unique title. Is there a good way to do this? I know I could get it if I removed the title from the master page, but then I would always have to set a title. Is there an easier way to go about this?

Thanks

VS 2008, C#, ASP.NET 3.5

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by sergb
0

Don't know much about C# but with my little experience with PHP, maybe you can have conditionals in the master page that will prevent the page titles being inserted in some pages. For PHP, u can override these stuff in an included file. This is just to suggest something, i hope it gives some lead.

0

Try settings the default title in the master page. Then try using the Pre_Render event of the page that needs a different title to overwrite the default title. I think for this to work you need to have your <head> element marked as runat="server". And maybe the title element too. Try both ways, see which one works.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.