protected void Page_Load(object sender, EventArgs e)
        {
            if (TicketToDisplay != null)
            {
                TicketEditorControl.TicketToDisplay      = TicketToDisplay;
                TicketEditorControl.TicketEditCompleted += new TicketPropertyChangedDelegate(TicketEditorControl_TicketEditCompleted);

                TicketActivityEditorControl.TicketToDisplay          = TicketToDisplay;
                TicketActivityEditorControl.TicketActivityCompleted += new TicketPropertyChangedDelegate(TicketActivityEditorControl_TicketActivityCompleted);
                TicketActivityEditorControl.TicketActivityCanceled  += new EventHandler(TicketActivityEditorControl_TicketActivityCanceled);
                TicketActivityEditorControl.TicketActivityFailed    += new EventHandler(TicketActivityEditorControl_TicketActivityFailed);

                TicketAttachmentsControl.TicketToDisplay = TicketToDisplay;

                Page.Title = string.Format("({2}) {0}: {1}", TicketToDisplay.Type, TicketToDisplay.Title, TicketToDisplay.TicketId.ToString());

                if (!Page.IsPostBack)
                {
                    string list = null;

                    if (Page.Request.UrlReferrer != null && Page.Request.UrlReferrer.PathAndQuery.Contains("TicketCenter"))
                    {
                        if (!string.IsNullOrEmpty(Page.Request.UrlReferrer.Query) && Page.Request.UrlReferrer.Query.Contains("list="))
                        {
                            list = Page.Request.UrlReferrer.Query.Substring(Page.Request.UrlReferrer.Query.LastIndexOf('=') + 1);
                        }
                        else
                        {
                            list = "unassigned";
                        }
                        var userSettings = ListViewSettingsCollection.GetSettingsForUser();
                        var listSettings = userSettings.GetSettingsForList(list);
                        if (listSettings != null)
                        {
                            BackLink.Text        = string.Format("Back to: {0}", listSettings.ListViewDisplayName);
                            BackLink.NavigateUrl = string.Format("~/TicketCenter2.aspx?list={0}", list);
                        }
                    }
                    else
                    {
                        BackLink.Visible = false;
                    }



                    PopulateDisplay();
                }
            }
        }
        protected void Page_Load()
        {
            userSettings = ListViewSettingsCollection.GetSettingsForUser();

            string listName = Page.Request.QueryString["list"];

            if (string.IsNullOrEmpty(listName))
            {
                int minOrder = userSettings.Settings.Min(us => us.ListViewDisplayOrder);
                listSetting = userSettings.Settings.SingleOrDefault(us => us.ListViewDisplayOrder == minOrder);
                listName    = listSetting.ListViewName;
            }
            listSetting = userSettings.Settings.SingleOrDefault(us => us.ListViewName == listName);
            Page.Title  = string.Format("Ticket Center: {0}", listSetting.ListViewDisplayName);
            ListViewSettingsEditorControl.ListName = listName;
            ListViewControl.ListName = listName;
        }