How to change an HTMLMeta control or Remove and Add New?

M

Miguel Dias Moura

Hello,

I am adding a MetaTag from my .pasx.vb code:
Dim metaTag As New HtmlMeta()
metaTag.Name = "Title"
metaTag.Content = "My Web Site"
Page.Header.Controls.Add(metaTag)

Later in my code I might need to change the Content of this MetaTag.
How can I do this?
If it is not possible, how can I remove it and add it a new one?

I have been trying to do this but had no success.

Thank You,
Miguel
 
G

Guest

I don't remember there being a title meta tag possibly I'm wrong again.

"Title" is a page attribute.
page.title="Website de los Miguel Dias Moura"


These are the meta tags I use. Notice all but one has name and content
attributes.

<meta NAME="ROBOTS" CONTENT="INDEX,NOFOLLOW"/>
<meta NAME="DESCRIPTION" CONTENT="webparts in action"/>
<meta NAME="KEYWORDS" CONTENT="webpart"/>
<meta NAME="AUTHOR" CONTENT="DWS"/>
<meta NAME="publication_date" CONTENT="1/26/2005"/>
<meta NAME="distribution" CONTENT="global"/>
<meta NAME="language" CONTENT="english"/>
<meta NAME="rating" CONTENT="general"/>
<meta NAME="copyright" CONTENT="2002, 2005, 2006"/>
<meta HTTP-EQUIV="Reply_to" CONTENT="(e-mail address removed)"/>

The meta tags are primarily used by search engines.

Good Luck

DWS
 

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

Top