private int LL() { int userID = LoginInfo.UserID; int userLevel = LoginInfo.UserLevel; int userIdentity = LoginInfo.UserIdentity; Dictionary <int, DataTable> dic = User_Cart.List(userID, userLevel, userIdentity); DataTable dtTotal = dic[0]; DataTable dtProList = dic[10]; this.txtTotalPriceAll.Text = dtTotal.Rows[0][0].ToString(); this.txtProN.Text = dtProList.Rows.Count.ToString(); Bind.BGRepeater(dtProList, this.rpList); return(dtProList.Rows.Count); }
protected void Page_Load(object sender, EventArgs e) { IMessage msgAjax = new MessageAjaxC(); int userID = Fn.IsInt(Req.GetSession(LoginInfo.C_UserID), 0); if (userID > 0) { cou = User_Cart.GetUserCartN(userID).ToString(); Dictionary <int, DataTable> dict = User_Cart.List(userID, LoginInfo.UserLevel, LoginInfo.UserIdentity); dtPro = dict[10]; totalPrice = double.Parse(dict[0].Rows[0]["TotalPrice"].ToString()); } msgAjax.AddMessage("cou", cou); msgAjax.AddMessage("html", Fn.GetControlHtml(this.cCart)); Response.Write(msgAjax.ReturnMessage); Response.End(); }