private void LoadGift() { GiftInfo myGiftsDetails = SubsiteGiftHelper.GetMyGiftsDetails(this.Id); this.txtGiftName.Text = Globals.HtmlDecode(myGiftsDetails.Name); this.lblPurchasePrice.Text = string.Format("{0:F2}", myGiftsDetails.PurchasePrice); this.txtNeedPoint.Text = myGiftsDetails.NeedPoint.ToString(); if (!string.IsNullOrEmpty(myGiftsDetails.Unit)) { this.lblUnit.Text = myGiftsDetails.Unit; } if (myGiftsDetails.MarketPrice.HasValue) { this.lblMarketPrice.Text = string.Format("{0:F2}", myGiftsDetails.MarketPrice); } if (!string.IsNullOrEmpty(myGiftsDetails.ShortDescription)) { this.lblShortDescription.Text = Globals.HtmlDecode(myGiftsDetails.ShortDescription); } if (!string.IsNullOrEmpty(myGiftsDetails.LongDescription)) { this.fcDescription.Text = myGiftsDetails.LongDescription; } if (!string.IsNullOrEmpty(myGiftsDetails.Title)) { this.txtGiftTitle.Text = Globals.HtmlDecode(myGiftsDetails.Title); } if (!string.IsNullOrEmpty(myGiftsDetails.Meta_Description)) { this.txtTitleDescription.Text = Globals.HtmlDecode(myGiftsDetails.Meta_Description); } if (!string.IsNullOrEmpty(myGiftsDetails.Meta_Keywords)) { this.txtTitleKeywords.Text = Globals.HtmlDecode(myGiftsDetails.Meta_Keywords); } if (!string.IsNullOrEmpty(myGiftsDetails.ImageUrl)) { this.uploader1.UploadedImageUrl = myGiftsDetails.ImageUrl; } if (myGiftsDetails.IsPromotion) { this.ckpromotion.Checked = true; } }