What happened to Master.Page.Header.MetaData ?

  • Thread starter Thread starter Alan Silver
  • Start date Start date
A

Alan Silver

Hello,

I downloaded and registered VWD Express from the MS site, and this gave
me a free download of a book called "Build A Web Site Now!", which is a
(very light) introduction to VWD.

In the chapter on master pages, it says that adding meta data to a page
is done by...

Master.Page.Header.MetaData.Add("keywords", "ferrets, gibbons");

which is supposed to add...

<meta name="keywords" content="ferrets, gibbons">

to the page header.

It didn't work, and when I checked the docs, it seems there's no such
thing as MetaData in Header.

Anyone know what happened here? Is there another way that's equally
simple of adding meta data to the page header?

TIA
 
This will get the current documentation
google: HtmlMeta site:msdn2.microsoft.com

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


Juan T. Llibre said:
See : http://www.howtoadvice.com/SetMetaTags

Also, see : http://forums.asp.net/921725/ShowPost.aspx



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
See : http://www.howtoadvice.com/SetMetaTags

Juan,

Thanks for those. I saw this longer method first, and thought it looked
a bit long-winded. I was all excited when I saw the short version in the
MS book. It's a shame they took it out.

It's also a shame that a brand new book that MS is pushing (and giving
away free to people who download VWD) includes out-of-date info.

Thanks for the reply
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
This will get the current documentation
google: HtmlMeta site:msdn2.microsoft.com

Thanks, but I've got the current docs. I've bookmarked msdn2, and VWD
comes with docs. I was more wondering why they took this feature out of
the framework. It's quick, easy and very useful.

Ta ra
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top