コード例 #1
0
        protected void hidden()
        {
            if (UsersInfo.UserID != "")
            {
                if (ShoppingCart_Bll.GetRecordCount2(" a.CommodityID = b.CommodityID and a.UserID='" + UsersInfo.UserID + "' ") > 5)
                {
                    RadDataPager1.Visible = true;
                }
                else
                {
                    RadDataPager1.Visible = false;
                }
                if (ShoppingCart_Bll.GetRecordCount3("a.CommodityID = b.CommodityID and a.UserID='" + UsersInfo.UserID + "'") == 0)
                {
                    content_buy.Visible = false;
                }
            }
            else
            {
                if (ShoppingCar.ShoppingList.Count == 0)
                {
                    content_buy.Visible = false;
                }
                else
                {
                    content_buy.Visible = true;
                }

                if (ShoppingCar.ShoppingList.Count > 5)
                {
                    RadDataPager1.Visible = true;
                }
                else
                {
                    RadDataPager1.Visible = false;
                }
            }
        }