Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
Microsoft Content Management Server 2002 .NET Class Reference
RobotMetaTag Class
Generates and renders <META> tags for search robots based on properties of the current Posting.

Namespace: Microsoft.ContentManagement.WebControls
Assembly: Microsoft.ContentManagement.WebControls (in microsoft.contentmanagement.webcontrols.dll)

Visual Basic (Declaration)
Public Class RobotMetaTag
    Inherits Control
Visual Basic (Usage)
Dim instance As RobotMetaTag
C#
public class RobotMetaTag : Control
C++
public ref class RobotMetaTag : public Control
J#
public class RobotMetaTag extends Control
JScript
public class RobotMetaTag extends Control

This control reads the IsRobotFollowable and IsRobotIndexable properties from the current posting, and then generates and renders the appropriate <META> tag indicating to robots whether they should index the page or follow links on the page when crawling the site. This control must be added in between the <HEAD> tags of a template .aspx page in order for it to function properly.

The control by default renders a <BASE> tag with the href attribute set to the URL of the template file. This causes the browser to use the template file URL instead of the individual Posting friendly URL when resolving relative references. As a result, the template designer can refer to embedded images or script files or other items used in the template using URLs that are relative to the template file. The behavior can be disabled by setting the RenderBaseHref property to false.

System.Object
   System.Web.UI.Control
    Microsoft.ContentManagement.WebControls.RobotMetaTag
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker