protected void rptDays_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            DateTime date = (DateTime)e.Item.DataItem;

            CalendarManager manager = new CalendarManager();


            bool HideExternal = Query("hideexternal");
            bool HideInternal = Query("hideinternal");
            bool HideUntagged = Query("hideNonTagged");

            Repeater rptEvents = (Repeater)e.Item.FindControl("rptEvents");

            int type     = Convert.ToInt32(Request.QueryString["type"]);
            int tryAdmin = 0;

            Int32.TryParse(Request.QueryString["privacy"], out tryAdmin);

            int?calendarAdmin = null;

            if (tryAdmin != 0)
            {
                calendarAdmin = tryAdmin;
            }

            rptEvents.DataSource = manager.EventsPerDay(date, HideExternal, HideInternal, HideUntagged, type, null).OrderBy(d => d.StartDateTime);
            rptEvents.DataBind();
        }