473,666 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What happened to Master.Page.Hea der.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.Hea der.MetaData.Ad d("keywords", "ferrets, gibbons");

which is supposed to add...

<meta name="keywords" content="ferret s, 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 3096
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*********@no spam.thanx> wrote in message
news:ze******** ******@nospamth ankyou.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.Hea der.MetaData.Ad d("keywords", "ferrets, gibbons");

which is supposed to add...

<meta name="keywords" content="ferret s, 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.micr osoft.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******** *****@TK2MSFTNG P15.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*********@no spam.thanx> wrote in message
news:ze******** ******@nospamth ankyou.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.Hea der.MetaData.Ad d("keywords", "ferrets, gibbons");

which is supposed to add...

<meta name="keywords" content="ferret s, 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.CO M : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
============== =============== =========
"Alan Silver" <al*********@no spam.thanx> wrote in message
news:ze******* *******@nospamt hankyou.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.Hea der.MetaData.Ad d("keywords", "ferrets, gibbons");

which is supposed to add...

<meta name="keywords" content="ferret s, 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.micr osoft.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******* ******@TK2MSFTN GP15.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*********@no spam.thanx> wrote in message
news:ze******** ******@nospamth ankyou.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.Hea der.MetaData.Ad d("keywords", "ferrets, gibbons");

which is supposed to add...

<meta name="keywords" content="ferret s, 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
2417
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 include files to change the layout. When I came to ASP.NET, I used user controls to do a similar thing. I have just been looking at master pages, and it looks like they do the same thing. If so, is there any advantage in using them over the...
2
1748
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 http://msdn.microsoft.com/asp.net/reference/design/default.aspx?pull=/library/en-us/dnvs05/html/masterpages.asp#masterpages_topic8 Which seems to suggest it's possible (Listing 11 half way down the page) but the method for adding a meta tag Master.Page.Header.Metadata.Add("Description",...
3
2100
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 > <title>Untitled Page</title> </head>
4
1868
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, I am having problems with Freedom2.master. The first problem is I sometimes get the following error when I build the site. The type 'Freedom2' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
17
3150
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 pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
11
12111
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 http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> This tags are part of the <headelement. Sample code that I have seen shows how to add metatags of the form:
4
5011
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; URL=http://www.mysite.com/" /> <title>Page Redirect</title> </head>
1
1865
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( Keyword and Description) for individual content page by writing the following line on Page_Load event in content page Sub Page_Load()
1
1438
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. This control have one Save Button. And this control haivng one Raise Event for this save button. I am using this UC in master page.
0
8444
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8869
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.