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

What happened to Master.Page.Header.MetaData ?

P: n/a
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

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:ze**************@nospamthankyou.spam...
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

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 23 '05 #2

P: n/a
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" <no***********@nowhere.com> wrote in message
news:OX*************@TK2MSFTNGP15.phx.gbl...
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/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:ze**************@nospamthankyou.spam...
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

--
Alan Silver
(anything added below this line is nothing to do with me)


Nov 23 '05 #3

P: n/a
>See : http://www.howtoadvice.com/SetMetaTags

Also, see : http://forums.asp.net/921725/ShowPost.aspx
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/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:ze**************@nospamthankyou.spam...
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

--
Alan Silver
(anything added below this line is nothing to do with me)



--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 24 '05 #4

P: n/a
>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/
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OX*************@TK2MSFTNGP15.phx.gbl...
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/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:ze**************@nospamthankyou.spam...
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

--
Alan Silver
(anything added below this line is nothing to do with me)




--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 24 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.