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