Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
System.Web.UI
Page Class
Page Properties
 MetaKeywords Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
Page..::.MetaKeywords Property

Gets or sets the content of the "keywords" meta element.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)
Visual Basic
<BindableAttribute(True)> _
Public Property MetaKeywords As String
    Get
    Set
C#
[BindableAttribute(true)]
public string MetaKeywords { get; set; }
Visual C++
[BindableAttribute(true)]
public:
property String^ MetaKeywords {
    String^ get ();
    void set (String^ value);
}
F#
[<BindableAttribute(true)>]
member MetaKeywords : string with get, set
ASP.NET
<asp:Page MetaKeywords="String" />

Property Value

Type: System..::.String
The content of the "keywords" meta element.
ExceptionCondition
InvalidOperationException

The page does not have a header control (a head element with the runat attribute set to "server").

HTML meta elements can be used to improve search-engine listings. The "keywords" meta element is either not used at all or is given very little weight by the major search engines.

If there is no "keywords" meta element in the head element of the page markup, the meta element is added to the page when the page is rendered. If the page markup already has a "keywords" meta element, this property gets or sets the content attribute of the meta element.

You can also set this property in the @ Page directive.

If you set the MetaKeywords property of a page to "HTML,CSS,XML,JavaScript", the following element will appear in the rendered HTML:

<meta name="keywords" content=" HTML,CSS,XML,JavaScript" />

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker