Exemplo n.º 1
0
 protected void FileItemRepeater_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName.ToString().ToLower() == "rename")
     {
         RenameFilePanel.Visible    = true;
         RenameFileSourceHdn.Value  = e.CommandArgument.ToString();
         RenameFileNameTextBox.Text = e.CommandArgument.ToString();
     }
     else if (e.CommandName.ToString().ToLower() == "delete")
     {
         DM.DeleteFile(Path.Combine(FolderPath, e.CommandArgument.ToString()));
         Response.Redirect(string.Format("managedrive.aspx?folderpath={0}", FolderPath));
     }
 }