private void ConfigureControls()
        {
            imgGspLogo.ImageUrl = Util.GetUrl("/images/gsp_logo_313x75.png");
            hlHome.NavigateUrl  = Util.GetCurrentPageUrl();

            // The global error handler in Gallery.cs should have, just prior to transferring to this page, the original
            // CannotWriteToDirectoryException instance. Grab this instance and display its message.
            CannotWriteToDirectoryException ex = System.Web.HttpContext.Current.Items["CurrentException"] as CannotWriteToDirectoryException;

            if (ex != null)
            {
                litErrorInfo.Text = Util.HtmlEncode(ex.Message);
            }
            else
            {
                litErrorInfo.Text = Util.HtmlEncode(new CannotWriteToDirectoryException().Message);
            }
        }
        private void ConfigureControls()
        {
            imgGspLogo.ImageUrl = Utils.GetUrl("/skins/dark/images/gs-logo.png");             // Don't use GetSkinnedUrl() because the app might not know the skin name when this runs
            hlHome.NavigateUrl  = Utils.GetCurrentPageUrl();

            // The global error handler in Gallery.cs should have, just prior to transferring to this page, the original
            // CannotWriteToDirectoryException instance. Grab this instance and display its message.
            if (System.Web.HttpContext.Current != null)
            {
                CannotWriteToDirectoryException ex = System.Web.HttpContext.Current.Items["CurrentException"] as CannotWriteToDirectoryException;
                if (ex != null)
                {
                    litErrorInfo.Text = Utils.HtmlEncode(ex.Message);
                }
                else
                {
                    litErrorInfo.Text = Utils.HtmlEncode(new CannotWriteToDirectoryException().Message);
                }
            }
            else
            {
                litErrorInfo.Text = Utils.HtmlEncode(new CannotWriteToDirectoryException().Message);
            }
        }