예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            products_obj.product_load(0, 1);

            load_p();
            //if (Request.QueryString["id"] != null)
            //Response.Redirect("#divv" + Request.QueryString["id"]);
            cart.Style.Add("display", "none");
            account.Style.Add("display", "none");
            if (Application["name"] != null)
            {//check com or user to remove home and open mange page of company :)
                string name = Application["name"].ToString();
                if (name != null)
                {
                    rege.Style.Add("display", "none");
                    login.Style.Add("display", "none");
                    cart.Style.Remove("display");
                    account.Style.Remove("display");
                    accountName.InnerHtml = name;
                }
            }
        }