By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,470 Members | 966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,470 IT Pros & Developers. It's quick & easy.

ASP.Net 2.0 Sitemaps and Page Titles

P: n/a
In straight HTML, you can set the page title using the code:

<html><head><title>This is a page title</title></head></html>

How is this done using sitemaps in ASP.NET 2.0.

Thanks,
Mike.

Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ms missed this, but you could easily write a siteheader control that looked
up the value in the sitemap.

-- bruce (sqlwork.com)

"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
In straight HTML, you can set the page title using the code:

<html><head><title>This is a page title</title></head></html>

How is this done using sitemaps in ASP.NET 2.0.

Thanks,
Mike.

Nov 23 '05 #2

P: n/a
Frequently you will want to have a page title some where on your page,
the html title and a navgiation element which displays title
information. If you want them to match then they can all key off the
SiteMap.CurrentNoe.Title Property. In my code (this is without error
hanlding etc) I have a masterpage where I set, Page.Title =
LabelPageTitle.Text = SiteMap.CurrentNode.Title.

Let me know if you nee more clarification.

Jonathan

Bruce Barker wrote:
ms missed this, but you could easily write a siteheader control that looked
up the value in the sitemap.

-- bruce (sqlwork.com)

"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
In straight HTML, you can set the page title using the code:

<html><head><title>This is a page title</title></head></html>

How is this done using sitemaps in ASP.NET 2.0.

Thanks,
Mike.


Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.