Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindSideLink();

                aisleID    = Request.QueryString["AL"].ToString();
                aisleTopID = Request.QueryString["AT"].ToString();
                shelfID    = Request.QueryString["SF"].ToString();

                AisleShelfName aisleShelfName = objBAL.GetAisleShelfInfo(aisleTopID, aisleID, shelfID);

                if (aisleShelfName != null)
                {
                    lblAisleName.Text = aisleShelfName.AisleName;
                    lblShelfName.Text = aisleShelfName.ShelfName;
                }

                int popularGridCount = GetPopularProducts();
                int itemGridCount    = GetProductList();

                if (itemGridCount <= 0)
                {
                    pnlAllProduct.Visible = false;

                    pnlMessage.Visible = true;
                }
                else
                {
                    if (popularGridCount <= 0)
                    {
                        pnlPopularProduct.Visible = false;
                    }

                    pnlMessage.Visible = false;
                }
            }
        }