Maintain Constant Title Across Website

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-05-19T18:16:01Z Indexed on 2010/05/19 18:20 UTC
Read the original article Hit count: 139

Filed under:
|
|

If I am creating a website in ASP.NET, is it possible to programmatically set the title of the page be some predefined value with some extra information tacked on? For example:

 Home Page   Title = Site Name
 Links       Title = Site Name: Links
 Stuff       Title = Site Name: Stuff

Basically, whatever I defined as the main title on the page I'm currently on, I want to tack ": Name" onto the end of the title so it stays consistent across the website. I was thinking of defining it as a ContentPlaceHolder and wrapping some logic around it, but it doesn't appear to work how I thought it would (AKA, not at all).

© Stack Overflow or respective owner

Related posts about website

Related posts about html