protected void FolderTableRepeater_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName.ToString().ToLower() == "rename") { RenameFolderPanel.Visible = true; RenameFolderSourceHdn.Value = e.CommandArgument.ToString(); RenameFolderNameTextBox.Text = e.CommandArgument.ToString(); } else if (e.CommandName.ToString().ToLower() == "delete") { DM.DeleteFolder(Path.Combine(FolderPath, e.CommandArgument.ToString())); Response.Redirect(string.Format("managedrive.aspx?folderpath={0}", FolderPath)); } }