Esempio n. 1
0
        private void FileFolder_Click(object sender, EventArgs e)
        {
            var button = sender as LinkButton;
            var path   = Encoding.UTF8.GetString(Convert.FromBase64String(button.CommandName));
            var task   = button.CommandName;
            var split  = path.Split(new string[] { "\\Upload" }, StringSplitOptions.None);

            path                = split[1].Replace("\\", "/");
            path                = "/Upload" + path;
            UserPath            = path;
            Session["UserPath"] = UserPath;
            var ext = Path.GetExtension(UserPath);

            if (ext == "")
            {
                //browse folder
                UpdateView("icon", GetFiles(path));
                //BrowserFooter.Text = "<span class='fg-white'>"+Path.GetDirectoryName(path)+"</span>";
                FooterLabel.Text = path;
                FileBoxUpdatePanel.Update();
                FooterUpdatePanel.Update();
            }
            if (ext.Contains("."))
            {
                //browse file
                BrowseFile(Encoding.UTF8.GetString(Convert.FromBase64String(button.CommandName)));
            }
        }
Esempio n. 2
0
 protected void UpdateAllPanels()
 {
     FooterUpdatePanel.Update();
     DirectoryTreeUpdatePanel.Update();
     FileBoxUpdatePanel.Update();
 }