Dynamicweb.eCommerce.Products Namespace : Period Class |
'Declaration
<SerializableAttribute()> Public Class Period
[SerializableAttribute()] public class Period
class MyPage : System.Web.UI.Page { protected System.Web.UI.WebControls.DropDownList creationPeriod; protected System.Web.UI.WebControls.DropDownList activePeriod; private void Page_Load(System.Object sender, System.EventArgs e) { if (!IsPostBack) { System.Collections.SortedList periodlist = new System.Collections.SortedList(); PeriodCollection periods = Dynamicweb.eCommerce.Common.Context.Periods; foreach (Period aperiod in periods) { if ((aperiod.ID != null)) { periodlist[Convert.ToString(aperiod.ID)] = aperiod.Name; } } Dynamicweb.eCommerce.Common.Gui.CreateDropDown(periodlist, creationPeriod, ""); Dynamicweb.eCommerce.Common.Gui.CreateDropDown(periodlist, activePeriod, ""); } } }
System.Object
Dynamicweb.eCommerce.Products.Period
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