示例#1
0
        private void loadCategoryBanner(int categoryBannerID)
        {
            CategoryBanner categoryBanner = new CategoryBannerBL().GetCategoryBanner(categoryBannerID);

            txtCategoryBannerName.Text = categoryBanner.Name;
            txtUrl.Text = categoryBanner.Url;
            imgCategoryBanner.ImageUrl = "/images/" + categoryBanner.ImageUrl;
            lblCategoryBannerName.Text = categoryBanner.Name;
            lblCategoryBannerID.Value  = categoryBanner.CategoryBannerID.ToString();
        }
示例#2
0
 private void loadCategoryBanner()
 {
     if (_categoryBannerID > 0)
     {
         eshopBE.CategoryBanner categoryBanner = new CategoryBannerBL().GetCategoryBanner(_categoryBannerID);
         lnkCategoryBanner.NavigateUrl = "~" + categoryBanner.Url;
         imgCategoryBanner.ImageUrl    = "~/images/" + categoryBanner.ImageUrl;
     }
     else
     {
         this.Visible = false;
     }
 }