Пример #1
0
    private void LoadProductDetails()
    {
        if (ProductID == 0)
        {
            return;
        }

        lblProductCode.Text  = this.ProductCode;
        lblProductTitle.Text = this.ProductTitle;
        lblProductPrice.Text = "£" + this.ProductPrice + " (ex vat) ";
        string url = SiteUtility.GetRewriterUrl("productdetailview", ProductID, "");

        lnkProductView.CommandArgument = url;
        lnkProductView.AlternateText   = url;
        lnkProductView.ImageUrl        = string.IsNullOrEmpty(ThumbImageUrl) ? SiteUtility.GetSiteRoot() + "/images/noImage.gif" : SiteUtility.GetSiteRoot() + "/" + ThumbImageUrl;
        btnAddToBasket.CommandArgument = ProductID.ToString();
        btnAddToBasket.Enabled         = this.ProductCode.Trim() == "CS2367" ? false : true;

        if (Session[enumSessions.User_Role.ToString()] != null && Session[enumSessions.User_Role.ToString()].ToString().ToUpper() == "ARC_ADMIN")
        {
            lblProductPrice.Visible = false;
        }
    }