Dynamicweb.eCommerce.Products Namespace : ManufacturerCollection Class |
'Declaration
<SerializableAttribute()> Public Class ManufacturerCollection Inherits System.Collections.ObjectModel.Collection(Of Manufacturer)
[SerializableAttribute()] public class ManufacturerCollection : System.Collections.ObjectModel.Collection<Manufacturer>
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); } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.ManufacturerCollection
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