public string GetPlanDdl(ResellerClub.Interface.Messages.IDomainInfoMessage _dataItem) { DropDownList ddl = new DropDownList(); ddl.ID = _dataItem.DomainName + "_plan"; ParentBasePage.BindPlan(Plan.GetTopLevelDomainPlan( _dataItem.DomainName.Substring(_dataItem.DomainName.IndexOf('.'))), ref ddl); return(Util.RenderControl(ddl)); }
protected void Page_Load(object sender, EventArgs e) { Repeater1.DataSource = ParentBasePage.UserCart.Items; Repeater1.DataBind(); ParentBasePage.GetPlansJSON(); if (IsPostBack) { if (Request.QueryString["login"] != null && Request.QueryString["login"] == "1") { return; } UpdateCart(); } }
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.DataItem != null) { var orderItem = (IOrderItemMessage)e.Item.DataItem; string labeltext = ""; var plan = Plan.GetPlanBySubPlanId(orderItem.SubPlanID); labeltext = Constant.GetItemDescription(orderItem.DomainName, plan.ProductName, plan.DisplayName); ((Label)e.Item.FindControl("lblItem")).Text = labeltext; DropDownList ddlPlan = e.Item.FindControl("ddlPlan") as DropDownList; ddlPlan.ID = orderItem.DomainName + "_" + orderItem.SubPlanID + "_ddlPlan"; string selectValue = orderItem.SubPlanID.ToString(); ParentBasePage.BindPlan(orderItem.SubPlanID, ref ddlPlan); ddlPlan.SelectedValue = selectValue; } }
private void BindData() { if (Plan0Visible) { ParentBasePage.BindPlan(Plan.GetPlansBySequence(Product[0], PlanSequence[0]), ref ddlPlan1); PlanStartingPrice[0] = Plan.GetPlanStartingPrice(Product[0], PlanSequence[0]).ToString(); } if (Plan1Visible) { ParentBasePage.BindPlan(Plan.GetPlansBySequence(Product[1], PlanSequence[1]), ref ddlPlan2); PlanStartingPrice[1] = Plan.GetPlanStartingPrice(Product[1], PlanSequence[1]).ToString(); } if (Plan2Visible) { ParentBasePage.BindPlan(Plan.GetPlansBySequence(Product[2], PlanSequence[2]), ref ddlPlan3); PlanStartingPrice[2] = Plan.GetPlanStartingPrice(Product[2], PlanSequence[2]).ToString(); } if (Plan3Visible) { ParentBasePage.BindPlan(Plan.GetPlansBySequence(Product[3], PlanSequence[3]), ref ddlPlan4); PlanStartingPrice[3] = Plan.GetPlanStartingPrice(Product[3], PlanSequence[3]).ToString(); } }
private void AddPlan(string plan) { ParentBasePage.SetSelectedWebservice(plan); RedirectToRootPage("SelectHostingDomain.aspx"); }