HtmlMeta::Content Property
.NET Framework (current version)
Gets or sets the metadata property value defined by the HtmlMeta control.
Assembly: System.Web (in System.Web.dll)
public: property String^ Content { virtual String^ get(); virtual void set(String^ value); }
The Content property, together with the Name property, defines a metadata property of the page.
The Content property is rendered to the content attribute of the resulting HTML <meta> element.
The following code example demonstrates how to use the HtmlMeta control to define HTML <meta> elements for a Web page. Two <meta> elements are defined, one listing keywords describing the page and one listing the date the page was created. The Content property is used to define the content attribute for each <meta> tag.
.NET Framework
Available since 2.0
Available since 2.0
Show: