Dynamicweb.eCommerce.Products Namespace : ProductRelated Class |
'Declaration
<SerializableAttribute()> Public Class ProductRelated
[SerializableAttribute()] public class ProductRelated
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); } } }
System.Object
Dynamicweb.eCommerce.Products.ProductRelated
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