protected override void CreateChildControls() { this.Controls.Clear(); IList <OrderLookupItemInfo> orderLookupItems = ShoppingProcessor.GetOrderLookupItems(this.LookupListId); if ((orderLookupItems != null) && (orderLookupItems.Count != 0)) { if (this.SelectMode == SelectModeTypes.DropDownList) { this.listItems = new DropDownList(); this.listItems.Items.Add(new ListItem(string.Empty, string.Empty)); this.listItems.Attributes.Add("onchange", "$.myfn.OrderOptionSelectForDropDownList(this);"); } else { this.listItems = new RadioButtonList(); } foreach (OrderLookupItemInfo info in orderLookupItems) { string str; if (info.AppendMoney.HasValue) { decimal money = this.CalculateOrderOptionPrice(info); str = this.Page.Server.HtmlDecode(info.Name) + "(" + Globals.FormatMoney(money).ToString() + ")"; } else { str = this.Page.Server.HtmlDecode(info.Name); } this.listItems.Items.Add(new ListItem(Globals.HtmlDecode(str), info.LookupItemId.ToString())); } this.Controls.Add(this.listItems); } }