Dynamicweb 8 Documentation
OptimizedFor Property
Example 

Gets or sets the keyword or phrase for which this product's meta data is optimized for.
Syntax
'Declaration
 
Public Property OptimizedFor As String
public string OptimizedFor {get; set;}
Example
class MyPage : System.Web.UI.Page
{
    private Product targetProduct;
    private void SaveSelectedPhrase(string phrase)
    {
        string productID = Base.ChkString(Request.QueryString["ProductID"]);
        string productVariantID = Base.ChkString(Request.QueryString["ProductVariantID"]);
        targetProduct.OptimizedFor = phrase;
        targetProduct.Save(productID, productVariantID);
    }
}
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