Dynamicweb 8 Documentation
Add(String) Method
Example 

Adds custom meta data tag to the pageview.
Syntax
'Declaration
 
Public Overloads Sub Add( _ 
   ByVal metatag As String _ 
) 
public void Add( 
   string metatag 
)

Parameters

metatag
Example
//Get current instance
 Dynamicweb.Frontend.PageView pv = Dynamicweb.Frontend.PageView.Current();
 
 //Change properties on the PageView object
 if(pv.Meta.isXhtml){
 	pv.Meta.Add("<meta name=\"Generator\" content=\"Dynamicweb 7\" />");
 }else{
 	pv.Meta.Add("<meta name=\"Generator\" content=\"Dynamicweb 7\">");
 }
Requirements

Target Platforms: 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

See Also

Reference

Meta Class
Meta Members
Overload List

Send Feedback