protected void Page_Load(object sender, EventArgs e)
        {
            this.httpVpnHelper = new HttpVpnHeader(this.Request);

            this.accessHyperLink.Visible = this.ShouldShowAccessTab();

            this.folderTreeControl.GuestTree = !UtilityMethods.IsAuthorizedToDefineUsersAccessRights();
            this.folderTreeControl.OnSelectedFolderChanged += new FolderTreeControl.SelectedFolderChangedDelegate(folderTreeControl_OnSelectedFolderChanged);

            if (!this.IsPostBack)
            {
                HttpCookie settingsCookies = this.Request.Cookies[cookieName];

                string skin           = string.Empty;
                string selectedFolder = null;

                if (settingsCookies != null)
                {
                    bool tempBool;

                    tempBool = this.includeSubfoldersCheckBox.Checked;
                    ParseBool(settingsCookies["IncludeSubfolders"], ref tempBool);
                    this.includeSubfoldersCheckBox.Checked = tempBool;

                    tempBool = this.shuffleCheckBox.Checked;
                    ParseBool(settingsCookies["Shuffle"], ref tempBool);
                    this.shuffleCheckBox.Checked = tempBool;

                    tempBool = this.repeateCheckBox.Checked;
                    ParseBool(settingsCookies["Repeat"], ref tempBool);
                    this.repeateCheckBox.Checked = tempBool;

                    skin           = settingsCookies["Skin"];
                    selectedFolder = settingsCookies["Selected Folder"];
                }

                this.InitSelectedFolder(selectedFolder);

                this.PopulateSkinList(skin);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.httpVpnHelper = new HttpVpnHeader(this.Request);

            this.accessHyperLink.Visible = this.ShouldShowAccessTab();

            this.folderTreeControl.GuestTree = !UtilityMethods.IsAuthorizedToDefineUsersAccessRights();
            this.folderTreeControl.OnSelectedFolderChanged += new FolderTreeControl.SelectedFolderChangedDelegate(folderTreeControl_OnSelectedFolderChanged);

            if (!this.IsPostBack)
            {
                HttpCookie settingsCookies = this.Request.Cookies[cookieName];

                string skin = string.Empty;
                string selectedFolder = null;

                if (settingsCookies != null)
                {
                    bool tempBool;

                    tempBool = this.includeSubfoldersCheckBox.Checked;
                    ParseBool(settingsCookies["IncludeSubfolders"], ref tempBool);
                    this.includeSubfoldersCheckBox.Checked = tempBool;

                    tempBool = this.shuffleCheckBox.Checked;
                    ParseBool(settingsCookies["Shuffle"], ref tempBool);
                    this.shuffleCheckBox.Checked = tempBool;

                    tempBool = this.repeateCheckBox.Checked;
                    ParseBool(settingsCookies["Repeat"], ref tempBool);
                    this.repeateCheckBox.Checked = tempBool;

                    skin = settingsCookies["Skin"];
                    selectedFolder = settingsCookies["Selected Folder"];
                }

                this.InitSelectedFolder(selectedFolder);

                this.PopulateSkinList(skin);
            }
        }