Dynamicweb 8 Documentation
ProductRelated Class
Members  Example 

Represents information about related products.
Object Model
ProductRelated ClassProduct Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class ProductRelated 
[SerializableAttribute()] 
public class ProductRelated 
Example
class MyPage : System.Web.UI.Page
{
    public void SaveProduct(string prodId, string groupId)
    {
        Product prod = (Product)HttpContext.Current.Session["Ecom.Backend.Product"];

        prod.RelatedGroups = null;
        prod.RelatedProducts = null;

        string RelGrpID = HttpContext.Current.Request.QueryString["RelGrpID"];
        string ProdRelID = HttpContext.Current.Request.QueryString["ProdRelID"];

        if (!string.IsNullOrEmpty(ProdRelID))
        {
            ProductRelated pr = new ProductRelated();

            pr.ProdID = prod.ID;
            pr.ProdRelID = ProdRelID;
            pr.RelGroupID = RelGrpID;
            pr.Save(pr.ProdID, pr.ProdRelID, pr.RelGroupID);
        }
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.ProductRelated

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

ProductRelated Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback