Explore Features > Disable File Operations |
All file operations are enabled by default but you can disable the Copy, New Folder and Open file operations.
Set the EnableCopy, EnableCreateNewFolder and EnableOpenFile properties to False in the <cc1:C1FileExplorer>
tag, to disable files and folders from being copied, to disable users from creating new folders and disable users from opening files.
<cc1:C1FileExplorer ID="C1FileExplorer1" runat="server" VisibleControls="All" ViewPaths="Example" EnableCopy="false" EnableOpenFile="false" EnableCreateNewFolder="false">
Add the following code to the Page_Load event to disable files and folders from being copied, to disable users from creating new folders and disable users from opening files.
To write code in C#
C1FileExplorer1.EnableCopy = false; C1FileExplorer1.EnableCreateNewFolder = false; C1FileExplorer1.EnableOpenFile = false;
To write code in Visual Basic
C1FileExplorer1.EnableCopy = False C1FileExplorer1.EnableCreateNewFolder = False C1FileExplorer1.EnableOpenFile = False