Dynamicweb 8 Documentation
ProductRelatedGroup Class
Members  Example 

Represents information about the product related groups.
Object Model
ProductRelatedGroup ClassProductCollection ClassProduct Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class ProductRelatedGroup 
[SerializableAttribute()] 
public class ProductRelatedGroup 
Example
class MyPage : System.Web.UI.Page
{
    private string RelatedGrpList()
    {
        StringBuilder sb = new StringBuilder();
        ProductRelatedGroupCollection rgCol = ProductRelatedGroup.getRelatedGroups();
        int fldCnt = rgCol.Count;

        sb.Append("<select size=" + fldCnt + 1 + " name=ElemSort style=\"width:400px;\" onChange=\"ToggleImage(this.selectedIndex);\">");
        foreach (ProductRelatedGroup rg in rgCol)
        {
            sb.Append("<option value=\"" + rg.GroupID + "\">" + rg.Name + "</option>");
        }
        sb.Append("</select>");
        return sb.ToString();
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.ProductRelatedGroup

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

ProductRelatedGroup Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback