protected void BuildUserDomainRow(TableRow row, StatisticsItem item, object unused)
        {
            Label  userDomainLabel = new Label();
            string text            = SiteUtilities.ClipString(item.identifier, 80);

            userDomainLabel.Text = text;
            row.Cells[0].Controls.Add(userDomainLabel);
            row.Cells[1].Text = item.count.ToString();
        }
        protected void BuildSearchesRow(TableRow row, StatisticsItem item, object unused)
        {
            HyperLink link = SiteUtilities.ParseSearchString(item.identifier);

            if (link != null)
            {
                row.Cells[0].Controls.Add(link);
                row.Cells[1].Text = item.count.ToString();
            }
        }
        protected void BuildReferrerRow(TableRow row, StatisticsItem item, object unused)
        {
            HyperLink link = new HyperLink();
            string    text = SiteUtilities.ClipString(item.identifier, 80);

            link.Text        = System.Web.HttpUtility.HtmlEncode(text);
            link.NavigateUrl = item.identifier.ToString();
            row.Cells[0].Controls.Add(link);
            row.Cells[1].Text = item.count.ToString();
        }
Example #4
0
        private void BuildClickThroughsRow(TableRow row, StatisticsItem item, object objDataService)
        {
            HyperLink        link        = new HyperLink();
            IBlogDataService dataService = objDataService as IBlogDataService;

            string[] urls = item.identifier.Split('°');
            string   text = SiteUtilities.ClipString(urls[0], 80);

            link.Text        = text;
            link.NavigateUrl = urls[0];

            HyperLink hlLocal = new HyperLink();

            hlLocal.NavigateUrl = urls[1];
            text = SiteUtilities.ClipString(urls[1], 80);
            if ((hlLocal.NavigateUrl != null && (hlLocal.NavigateUrl.Length > 0)))
            {
                int    idx;
                string id;

                // urls in the log have been written using URL Rewriting
                if (hlLocal.NavigateUrl.IndexOf("guid,") > -1)
                {
                    string guid = hlLocal.NavigateUrl.Substring(0, hlLocal.NavigateUrl.Length - 5);
                    idx = guid.IndexOf("guid,");
                    id  = guid.Substring(idx + 5);
                }
                else
                {
                    idx = hlLocal.NavigateUrl.IndexOf("guid=");
                    id  = hlLocal.NavigateUrl.Substring(idx + 5);
                }

                Entry entry = dataService.GetEntry(id);

                if (entry != null && entry.Title != null && entry.Title.Length > 0)
                {
                    text = SiteUtilities.ClipString(entry.Title, 80);
                }
            }

            hlLocal.Text = text;

            row.Cells[0].Controls.Add(link);
            row.Cells[0].Controls.Add(new LiteralControl("<br />from:"));
            row.Cells[0].Controls.Add(hlLocal);
            row.Cells[1].Text = item.count.ToString();
        }
Example #5
0
		private void BuildClickThroughsRow(TableRow row, StatisticsItem item, object objDataService)
		{
			HyperLink link = new HyperLink();
			IBlogDataService dataService = objDataService as IBlogDataService;

			string[] urls = item.identifier.Split('°');
			string text = SiteUtilities.ClipString(urls[0], 80);
			link.Text = text;
			link.NavigateUrl = urls[0];

			HyperLink hlLocal = new HyperLink();
			hlLocal.NavigateUrl = urls[1];
			text = SiteUtilities.ClipString(urls[1], 80);
			if ((hlLocal.NavigateUrl != null && (hlLocal.NavigateUrl.Length > 0)))
			{
				int idx;
				string id;

				// urls in the log have been written using URL Rewriting
				if (hlLocal.NavigateUrl.IndexOf("guid,") > -1)
				{
					string guid = hlLocal.NavigateUrl.Substring(0, hlLocal.NavigateUrl.Length - 5);
					idx = guid.IndexOf("guid,");
					id = guid.Substring(idx + 5);
				}
				else
				{
					idx = hlLocal.NavigateUrl.IndexOf("guid=");
					id = hlLocal.NavigateUrl.Substring(idx + 5);
				}

				Entry entry = dataService.GetEntry(id);
		
				if (entry != null && entry.Title != null && entry.Title.Length > 0)
				{
					text = SiteUtilities.ClipString(entry.Title, 80);
				}
			}

			hlLocal.Text = text;

			row.Cells[0].Controls.Add(link);
			row.Cells[0].Controls.Add(new LiteralControl("<br />from:"));
			row.Cells[0].Controls.Add(hlLocal);
			row.Cells[1].Text = item.count.ToString();
		}
		private void BuildCrosspostReferrersRow(TableRow row, StatisticsItem item, object objDataService)
		{
			IBlogDataService dataService = objDataService as IBlogDataService;

			HyperLink link = new HyperLink();

			string text = SiteUtilities.ClipString(item.identifier, 80);

			if (item.identifier != null && item.identifier.Length > 0)
			{
				int idx;
				string id;

				// urls in the log have been written using URL Rewriting
				if (item.identifier.IndexOf("guid,") > -1)
				{
					string guid = item.identifier.Substring(0, item.identifier.Length - 5);
					idx = guid.IndexOf("guid,");
					id = guid.Substring(idx + 5);
				}
				else
				{
					idx = item.identifier.IndexOf("guid=");
					id = item.identifier.Substring(idx + 5);
				}

				Entry entry = dataService.GetEntry(id);
				if (entry != null && entry.Title != null && entry.Title.Length > 0)
				{
					text = SiteUtilities.ClipString(entry.Title, 80);
				}
			}
			link.Text = text;
			link.NavigateUrl = item.identifier.ToString();
			row.Cells[0].Controls.Add(link);
			row.Cells[1].Text = item.count.ToString();
		}
Example #7
0
        private void BuildAggBugsRow(TableRow row, StatisticsItem item, object objDataService)
        {
            IBlogDataService dataService = objDataService as IBlogDataService;

            HyperLink link = new HyperLink();

            string text = SiteUtilities.ClipString(item.identifier, 80);

            if (item.identifier != null && item.identifier.Length > 0)
            {
                int    idx;
                string id;

                // urls in the log have been written using URL Rewriting
                if (item.identifier.IndexOf("guid,") > -1)
                {
                    string guid = item.identifier.Substring(0, item.identifier.Length - 5);
                    idx = guid.IndexOf("guid,");
                    id  = guid.Substring(idx + 5);
                }
                else
                {
                    idx = item.identifier.IndexOf("guid=");
                    id  = item.identifier.Substring(idx + 5);
                }
                Entry entry = dataService.GetEntry(id);
                if (entry != null && entry.Title != null && entry.Title.Length > 0)
                {
                    text = SiteUtilities.ClipString(entry.Title, 80);
                }
            }

            link.Text        = text;
            link.NavigateUrl = item.identifier.ToString();
            row.Cells[0].Controls.Add(link);
            row.Cells[1].Text = item.count.ToString();
        }
Example #8
0
 protected void BuildUserDomainRow(TableRow row, StatisticsItem item, object unused)
 {
     Label userDomainLabel = new Label();
     string text = SiteUtilities.ClipString(item.identifier, 80);
     userDomainLabel.Text = text;
     row.Cells[0].Controls.Add(userDomainLabel);
     row.Cells[1].Text = item.count.ToString();
 }
Example #9
0
        protected void BuildSearchesRow(TableRow row, StatisticsItem item, object unused)
        {
            HyperLink link = SiteUtilities.ParseSearchString(item.identifier);

            if (link != null)
            {
                row.Cells[0].Controls.Add(link);
                row.Cells[1].Text = item.count.ToString();
            }
        }
Example #10
0
 protected void BuildReferrerRow( TableRow row, StatisticsItem item, object unused )
 {
     HyperLink link = new HyperLink();
     string text = SiteUtilities.ClipString(item.identifier,80);
     link.Text = System.Web.HttpUtility.HtmlEncode(text);
     link.NavigateUrl = item.identifier.ToString();
     row.Cells[0].Controls.Add(link);
     row.Cells[1].Text = item.count.ToString();
 }