Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblOfferName1.Text        = name1 + " " + AlbumYear.ToString() + " - " + imgID_1.ToString();
            lblOfferDescription1.Text = description1;
            lblOfferPrice1.Text       = price1.ToString();
            lblOffer1ID.Text          = offer1ID.ToString();
            lblUserName1.Text         = user1;
            lblUserEmail1.Text        = email1;
            lblOfferDatum.Text        = date.ToShortDateString();

            imgOfferPreview1.ImageUrl = imgUrl_1;
            lblOfferDatum.Text        = date.ToShortDateString();
            btnOfferBuy1.Enabled      = false;
            if (Status == 1)
            {
                btnOfferBuy1.Text     = "Се чека на потврда";
                btnOfferBuy1.CssClass = "btn btn-warning";
            }
            else if (Status == 2)
            {
                btnOfferBuy1.Text     = "Понудата е одбиена";
                btnOfferBuy1.CssClass = "btn btn-danger";
            }
            else
            {
                btnOfferBuy1.Text     = "Понудата е прифатена";
                btnOfferBuy1.CssClass = "btn btn-success";
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblOfferName1.Text        = name1 + " " + AlbumYear.ToString() + " - " + imgID_1.ToString();
            lblOfferDescription1.Text = description1;
            lblOfferPrice1.Text       = price1.ToString();
            lblOffer1ID.Text          = offer1ID.ToString();
            lblUserName1.Text         = user1;
            lblUserEmail1.Text        = email1;
            lblOfferDatum.Text        = date.ToShortDateString();

            imgOfferPreview1.ImageUrl = imgUrl_1;
        }