Referrers date ordered

Topics: ASP.NET 2.0
Feb 18, 2010 at 5:59 PM

Hi Ben,

is there some chance to get the date into the referrers ordered progressively instead without non-sense as currently they are?

Cheers

Andrea

Coordinator
Feb 19, 2010 at 5:30 AM

Do you mean ordering the date in the dropdown list on the Referrers tab?

The report itself doesn't appear to show a date.  The only date I see is the dropdown list date.  I'm not using referring data personally, but when I created some quick mock-up data, the date in the dropdown list is in order.  But this could be just a coincidence.

Feb 19, 2010 at 6:50 AM
Yeah sorry it was in the drop down.

Saluti
Andrea Moro

On 19/feb/2010, at 06.31, "BenAmada" <notifications@codeplex.com> wrote:

From: BenAmada

Do you mean ordering the date in the dropdown list on the Referrers tab?

The report itself doesn't appear to show a date. The only date I see is the dropdown list date. I'm not using referring data personally, but when I created some quick mock-up data, the date in the dropdown list is in order. But this could be just a coincidence.

Coordinator
Feb 19, 2010 at 7:41 AM

Ok, was just checking.

In the admin\Pages folder is referrers.aspx.cs.  In there, is BindDays().  You'll find this:

ddlDays.DataSource = Referrer.ReferrersByDay.Keys;

Replace that with:

List<DateTime> keys = new List<DateTime>(Referrer.ReferrersByDay.Keys);
keys.Sort();
ddlDays.DataSource = keys;