Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (featuredCategory == null)
     {
         featuredCategory = Galleries.GetFeatured(Galleries.GalleryType.Category);
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            topFeaturedArticles = Galleries.GetFeatured(Galleries.GalleryType.Article);
            CleanUpArticleForBillboard();
            var billboardJson      = JsonConvert.SerializeObject(topFeaturedArticles);
            var functionScriptCall = string.Format("constructBillboard({0});", billboardJson);

            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "", functionScriptCall, true);
        }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     featuredCategory = Galleries.GetFeatured(Galleries.GalleryType.Category);
     LoadFeaturedCategoryArticles();
     LoadFeaturedCategories();
     loadLatestGalleries();
     LoadLatestMonthlyContributors();
     LoadTopEarningVideos();
     loadAds();
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadTopEarningVideos();
            List <GalleryItem> fVideos = new List <GalleryItem>();

            fVideos        = Galleries.GetFeatured(Galleries.GalleryType.Video);
            featuredVideos = (fVideos.Count() >= 4) ? fVideos.GetRange(0, 4) : fVideos;
            //LoadTopEarningVideos();
            //LoadLasteBLogs();
            //loadAds();
            //loadTopStories();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     //topFeaturedArticles = Galleries.GetFeatured(Galleries.GalleryType.Article);
     featuredVideos = Galleries.GetFeatured(Galleries.GalleryType.Video);
     //CleanUpArticleForBillboard();
     LoadLatestMonthlyContributors();
     LoadTopEarningVideos();
     LoadLasteBLogs();
     loadLatestGalleries();
     buildYouTubeVideosArray(featuredVideos);
     loadAds();
     loadBB();
     loadTings();
 }
        //private string categoryId;
        //protected string CategoryId
        //{
        //    get
        //    {
        //        if (String.IsNullOrEmpty(categoryId) && Page.RouteData.Values["id"].ToString() != null)
        //            categoryId = Page.RouteData.Values["id"].ToString();

        //        return categoryId;
        //    }
        //}

        protected void Page_Load(object sender, EventArgs e)
        {
            if (HasCategoryUrl())
            {
                string categoryUrl = Request.QueryString["p"].ToString();
                categoryId       = Convert.ToInt32(library.GetCategoryUrlId(categoryUrl));
                featuredCategory = new List <GalleryItem>();
                featuredCategory = Galleries.GetFeatured(Galleries.GalleryType.Category);
                LoadFeaturedCategoryArticles();
                LoadFeaturedCategories();
                loadLatestGalleries();
                LoadLatestMonthlyContributors();
                LoadTopEarningVideos();
                LoadAd();
            }
        }
Пример #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     topFeaturedArticles = Galleries.GetFeatured(Galleries.GalleryType.Article);
 }