Dynamicweb 8 Documentation
ManufacturerCollection Class
Members  Example 

Collection of Manufacturer class objects
Object Model
ManufacturerCollection ClassManufacturer Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
   protected System.Web.UI.WebControls.DropDownList ManufacturerID;
   public void CreateDropDown(Dynamicweb.eCommerce.Products.Product prod)
   {
       System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, string>> manulist = new System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, string>>();
       ManufacturerCollection manus = Dynamicweb.eCommerce.Common.Context.Manufacturers;
       foreach (Manufacturer manu in manus)
       {
           if ((manu.ID != null))
           {
               manulist.Add(new System.Collections.Generic.KeyValuePair<string, string>(Base.ChkString(manu.ID), Base.ChkString(manu.Name)));
           }
       }
       Dynamicweb.eCommerce.Common.Gui.CreateDropDown(manulist, ManufacturerID, prod.ManufacturerID);
   }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Products.ManufacturerCollection

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

ManufacturerCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback