473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What happened to Master.Page.Header.MetaData ?

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
4 3086
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
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
>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
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
2
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article...
3
by: samuelberthelot | last post by:
Hi, In one of my database's tables I have a Header and Footer field, which content is used to create the header and footer of my Master page. Part generated from Header field: <html > <head...
4
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses more than one master page. Currently, there are two pages, Freedom1.master and Freedom2.master. I have no problems with Freedom1.master. However,...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
4
by: sck10 | last post by:
Hello, I have the following in my Master Page that I am using as a redirect template: <head id="headRedirect" runat="server"> <meta id="metaRedirect" http-equiv="Refresh" content="2;...
1
by: Asif | last post by:
Hi All, I did follow the MSDN article (http://msdn2.microsoft.com/en-us/ library/ms379585(VS.80).aspx ) for overriding Master Page properties by setting page title and other Meta information(...
1
by: Rushi | last post by:
Hi All, I want to publish one Event from my Header User Control using Master pAge . And want to attach/detach this event from individual pages. Details: I have one User Control Header.ascx....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.