or
| <telerik:RadFileExplorer ID="FileExplorer1" runat="server" Width="700" Height="500" /> |
| if (!IsPostBack) | |
| { | |
| FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName; | |
| FileExplorer1.InitialPath = Page.ResolveUrl(@"\\ftp\ftp\" ); | |
| FileExplorer1.Configuration.DeletePaths = new string[] { @"\\ftp\ftp\" }; | |
| FileExplorer1.Configuration.UploadPaths = new string[] { @"\\ftp\ftp\" }; | |
| FileExplorer1.Configuration.ViewPaths = new string[] { @"\\ftp\ftp\" }; | |
| } | |
| AddDateColumns(); |
| public class CustomColumnsContentProvider : FileSystemContentProvider |
| { |
| public CustomColumnsContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag) |
| : base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag) |
| { |
| // Declaring a constructor is required when creating a custom content provider class |
| } |
| public override DirectoryItem ResolveDirectory(string path) |
| { |
| // Update all file items with the additional information (date, owner) |
| DirectoryItem oldItem = base.ResolveDirectory(path); |
| foreach (FileItem fileItem in oldItem.Files) |
| { |
| // Get the information from the physical file |
| FileInfo fInfo = new FileInfo(Context.Server.MapPath(VirtualPathUtility.AppendTrailingSlash(oldItem.Path) + fileItem.Name)); |
| // Add the information to the attributes collection of the item. It will be automatically picked up by the FileExplorer |
| // If the name attribute matches the unique name of a grid column |
| fileItem.Attributes.Add("Date", fInfo.CreationTime.ToString()); |
| } |
| return oldItem; |
| } |
| public override DirectoryItem ResolveRootDirectoryAsTree(string path) |
| { |
| // Update all directory items with the additional information (date, owner) |
| DirectoryItem oldItem = base.ResolveRootDirectoryAsTree(path); |
| foreach (DirectoryItem dirItem in oldItem.Directories) |
| { |
| // Get the information from the physical directory |
| DirectoryInfo dInfo = new DirectoryInfo(Context.Server.MapPath(VirtualPathUtility.AppendTrailingSlash(dirItem.Path))); |
| // Add the information to the attributes collection of the item. It will be automatically picked up by the FileExplorer |
| // If the name attribute matches the unique name of a grid column |
| dirItem.Attributes.Add("Date", dInfo.LastWriteTime.ToString()); |
| } |
| return oldItem; |
| } |
| } |
| FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName; |
| DirectoryItem oldItem = base.ResolveDirectory(path); |
| DirectoryInfo di = new DirectoryInfo("\\ftp\ftp\"); |
| FileInfo[] rgFiles = di.GetFiles("*.*"); |
| foreach(FileInfo fi in rgFiles) |
| { |
| Response.Write("<br><a href=" + fi.Name + ">" + fi.Name + "</a>"); |
| } |

document.body.editor.enableEditing =
false;
document.body.editor.set_editable(false);
document.body.editor.EnableContentArea = false;
document.body.editor.get_ContentArea().contentEditable = 'false';
Suggestions?

ID="ComboBox" runat="server" CheckBoxes="True" EnableCheckAllItemsCheckBox="True" DataTextField="DEPARTMENT" DataValueField="DEPARTMENT" Width="300px" MaxHeight="600px" AutoPostBack="True"Protected Sub ComboBox_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboBox.TextChanged'do somethingEnd Sub