Dynamicweb 8 Documentation
Manufacturer Class
Members  Example 

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

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

Manufacturer Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback