Dynamicweb 8 Documentation
Meta Property (Product)
Example 

Gets or sets meta data. Meta information is used by search engines to index searches by means of keywords.
Syntax
'Declaration
 
Public Property Meta As Product.MetaData
public Product.MetaData Meta {get; set;}
Example
Class MetaInformation
{
    protected System.Web.UI.WebControls.TextBox MetaTitle;
    protected System.Web.UI.WebControls.TextBox MetaKeywords;
    protected System.Web.UI.WebControls.TextBox MetaDescr;
    protected System.Web.UI.WebControls.TextBox MetaUrl;
    private Product product;
 
    public void GetMetaData()
    {
        product = new Product();
        product.Meta = new Product.MetaData();
        product.Meta.Title = MetaTitle.Text.Trim();
        product.Meta.Keywords = MetaKeywords.Text.Trim();
        product.Meta.Description = MetaDescr.Text.Trim();
        product.Meta.Url = MetaUrl.Text.Trim();
    }
}
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

Product Class
Product Members

Send Feedback