This project is read-only.

Change title tags the way you want per page

Topics: ASP.NET 2.0
Dec 31, 2009 at 12:36 PM

It doesn't appear we currently have control over how the title tag is written.  We tried the SEO Pack and it just lets you move blocks around.  We are looking for a solution where we can make every page to have a unique title tag so it's not site specific, page specific.

Any thoughts on how one might go about doing this?

Jan 6, 2010 at 8:54 PM

Anyone have any thoughts?


Jan 6, 2010 at 10:39 PM

You can change the Title tag, if you want.

For BE "Pages", the title is controlled in page.aspx.cs by the following line of code:

base.Title = Server.HtmlEncode(Page.Title);

For BE "Posts", the title is controlled in post.aspx.cs by the following line of code:

Page.Title = Server.HtmlEncode(Post.Title);

The homepage, listings by tag, listings by category, listings by author, listings by date range and other similar listings are controlled in default.aspx.cs with the lines of code beginning with "Page.Title = .....".