public void Analysis_OnClick(object sender, EventArgs e)
 {
     var siteId = TranslateUtils.ToInt(DdlSiteId.SelectedValue);
     PageUtils.Redirect(siteId > 0
         ? PageAnalysisSiteHitsChannels.GetRedirectUrl(siteId)
         : GetRedirectUrl());
 }
        private void RptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem) return;

            var siteId = (int) e.Item.DataItem;

            var siteInfo = SiteManager.GetSiteInfo(siteId);

            var ltlSiteName = (Literal)e.Item.FindControl("ltlSiteName");
            var ltlHitsNum = (Literal)e.Item.FindControl("ltlHitsNum");

            ltlSiteName.Text = $@"<a href=""{PageAnalysisSiteHitsChannels.GetRedirectUrl(siteId)}"">{siteInfo.SiteName}</a>";
            ltlHitsNum.Text = GetYHashtable(siteId);
        }