private void PageLoad() { #region " Cart List Data Repeater" if (_templD.Trim() != "") // if we don;t have a template, don't do anything { var groupresults = ModSettings.Get("chkgroupresults") == "True"; var l = _cartInfo.GetCartItemList(groupresults); rpData.DataSource = l; rpData.DataBind(); } var cartL = new List <NBrightInfo>(); cartL.Add(_cartInfo.GetInfo()); // display header rpDataH.DataSource = cartL; rpDataH.DataBind(); // display footer rpDataF.DataSource = cartL; rpDataF.DataBind(); #endregion if (carttype == "3") // full cart list { // display footer cartL[0].SetXmlProperty("genxml/hidden/currentcartstage", cartL[0].GetXmlProperty("genxml/currentcartstage")); // set the cart stage so we appear on correct stage. checkoutlayout.DataSource = cartL; checkoutlayout.DataBind(); } if (carttype == "2") // full checkout { // display footer cartL[0].SetXmlProperty("genxml/hidden/currentcartstage", cartL[0].GetXmlProperty("genxml/currentcartstage")); // set the cart stage so we appear on correct stage. checkoutlayout.DataSource = cartL; checkoutlayout.DataBind(); var objl = new List <NBrightInfo>(); var billaddr = _cartInfo.GetBillingAddress(); if (billaddr.XMLData == null) { var defAddr = _addressData.GetDefaultAddress(); if (defAddr == null) { var cookieaddr = Cookie.GetCookieValue(PortalId, "cartaddress", "billingaddress", "cartaddress"); billaddr.XMLData = cookieaddr; } else { billaddr.XMLData = defAddr.XMLData; } } objl.Add(billaddr); rpAddrB.DataSource = objl; rpAddrB.DataBind(); objl = new List <NBrightInfo>(); objl.Add(_cartInfo.GetShippingAddress()); rpAddrS.DataSource = objl; rpAddrS.DataBind(); // display shipping input form objl = new List <NBrightInfo>(); objl.Add(_cartInfo.GetShipData()); rpShip.DataSource = objl; rpShip.DataBind(); // display extra input form objl = new List <NBrightInfo>(); objl.Add(_cartInfo.GetExtraInfo()); rpExtra.DataSource = objl; rpExtra.DataBind(); } }