Welcome Guest Search | Active Topics | Sign In | Register

Fileexplorer issue Options
Charly
Posted: Sunday, February 27, 2011 1:54:26 PM
Rank: Newbie
Groups: Member

Joined: 5/15/2008
Posts: 3
Hello,
I put a fileexplorer instance on my asp.net page. I uploaded some files in a folder. This files are visible in fileexplorer central box. After I deleted the folder by the fileexplorer delete button, the folder files (that was deleted) was still visible in the fileexplorer file box. Why?
This is my page:

Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="areaclientedoccli.aspx.cs"
    Inherits="areaclientedoccli" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Documenti cliente</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left:20px;">
        <script type="text/javascript">
			function leftsplitter_resize_handler(splitter)
			{
				var w = splitter.getLeftPane().getWidth();
				var h = splitter.getLeftPane().getHeight();
				
				//Resize the TreeView
				var treeView = eo_GetObject("FolderTree");
				if (treeView)
					treeView.setSize(w - 10, h - 36);
			}

			function rightsplitter_resize_handler(splitter)
			{
				AdjustFilePaneLayout();
				
				var w = splitter.getRightPane().getWidth();
				var h = splitter.getRightPane().getHeight();
				h -= 26;
				
				//Resize the Preview Panel
				if ((w > 0) && (h > 0))
					eo_GetObject("FileExplorer1").setPreviewRegionSize(w, h);
			}

			function AdjustFilePaneLayout()
			{
				var splitter = eo_GetObject("RightSplitter");
				var uploader = eo_GetObject("FileUploader");

				var w = splitter.getLeftPane().getWidth();
				var h = splitter.getLeftPane().getHeight();
				
				h -= 26;
				if (uploader && uploader.isRunning())
					h -= 55;
				
				//Resize the Grid
				var grid = eo_GetObject("FileGrid");
				if (grid)
					grid.setSize(w, h);
				
				//Resize the uploader
				if (uploader)
					uploader.setWidth(w);
			}

			function upload_begin()
			{
				//Display the uploader progress bar and progress text
				document.getElementById("uploader_div").style.display = "block";
				AdjustFilePaneLayout();
			}

			function upload_done()
			{
				//Hide the uploader progress bar and progress text
				document.getElementById("uploader_div").style.display = "none";
				AdjustFilePaneLayout();
			}
        </script>

        <img src="img/commercialista_old.jpg" alt="" /><%--<a href="CMS/cms_login.aspx"><img
            src="img/lucchetto.jpg" alt="" style="border: none; width: 50px; height: 50px;" /></a>--%>
        <br />
        <br />
        <eo:Menu runat="server" ID="Menu1" ControlSkinID="None" Width="200px" CheckIconUrl="OfficeCheckIcon2">
            <TopGroup Style-CssText="background-color:#ABC7F6;">
                <Items>
                    <eo:MenuItem Text-Html="Area riservata">
                        <SubMenu>
                            <Items>
                                <eo:MenuItem Text-Html="I tuoi dati" NavigateUrl="areaclientedati.aspx">
                                </eo:MenuItem>
                                <eo:MenuItem IsSeparator="True">
                                </eo:MenuItem>
                                <eo:MenuItem Text-Html="Le tue scadenze" NavigateUrl="areaclientescadenze.aspx">
                                </eo:MenuItem>
                                <eo:MenuItem IsSeparator="True">
                                </eo:MenuItem>
                                <eo:MenuItem LeftIcon-Url="00000100" Text-Html="Gestisci i tuoi documenti">
                                <SubMenu ItemSpacing="3">
                                        <Items>
                                            <eo:MenuItem Text-Html="File explorer" NavigateUrl="areaclientedoccli.aspx">
                                            </eo:MenuItem>
                                            <eo:MenuItem Text-Html="Invio multiplo di documenti" NavigateUrl="areaclienteupload.aspx">
                                            </eo:MenuItem>
                                        </Items>
                                </SubMenu>
                                </eo:MenuItem>
                                <eo:MenuItem LeftIcon-Url="img/cms/ico_documenti.jpg" Text-Html="Documenti del commercialista" NavigateUrl="areaclientedoccom.aspx">
                                </eo:MenuItem>
                                <eo:MenuItem IsSeparator="True">
                                </eo:MenuItem>
                            </Items>
                        </SubMenu>
                    </eo:MenuItem>
                    <eo:MenuItem Text-Html="Chiudi">
                        <SubMenu>
                            <Items>
                                <eo:MenuItem Text-Html="Chiudi finestra" OnClickScript="javascript:window.close()">
                                </eo:MenuItem>
                            </Items>
                        </SubMenu>
                    </eo:MenuItem>
                </Items>
            </TopGroup>
            <LookItems>
                <eo:MenuItem DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px;color:gray"
                    Height="24" HoverStyle-CssText="background-color:#C0D6F4;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:4px;padding-right:4px;padding-top:0px;padding-bottom:0px;"
                    ItemID="_TopLevelItem" NormalStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px;"
                    SelectedStyle-CssText="background-color:white;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:4px;padding-right:4px;padding-top:0px;padding-bottom:0px;">
                    <SubMenu ExpandEffect-Type="GlideTopToBottom" Style-CssText="background-color:#F6F6F6;border-bottom-color:#002D96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002D96;border-left-style:solid;border-left-width:1px;border-right-color:#002D96;border-right-style:solid;border-right-width:1px;border-top-color:#002D96;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;"
                        CollapseEffect-Type="GlideTopToBottom" SideImage="Office2003SideBar2" LeftIconCellWidth="25"
                        ItemSpacing="3">
                    </SubMenu>
                </eo:MenuItem>
                <eo:MenuItem IsSeparator="True" ItemID="_Separator" NormalStyle-CssText="background-color:#6A8CCB;height:1px;margin-left:30px;width:1px;">
                </eo:MenuItem>
                <eo:MenuItem DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:5px;padding-top:1px;color:gray"
                    Height="24" HoverStyle-CssText="background-color:#FFEEC2;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:1px;padding-right:4px;padding-top:0px;"
                    ItemID="_Default" NormalStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:5px;padding-top:1px;"
                    SelectedStyle-CssText="background-color:white;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:1px;padding-right:4px;padding-top:0px;"
                    Text-Padding-Right="30">
                    <SubMenu ExpandEffect-Type="GlideTopToBottom" Style-CssText="background-color:#F6F6F6;border-bottom-color:#002D96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002D96;border-left-style:solid;border-left-width:1px;border-right-color:#002D96;border-right-style:solid;border-right-width:1px;border-top-color:#002D96;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;"
                        CollapseEffect-Type="GlideTopToBottom" SideImage="Office2003SideBar2" LeftIconCellWidth="25"
                        ItemSpacing="3">
                    </SubMenu>
                </eo:MenuItem>
            </LookItems>
        </eo:Menu>
        <eo:Dialog runat="server" ID="Dialog1" ControlSkinID="None" Width="320px" HeaderHtml='
"padding-top:5px">Dialog Title</div>' Height="216px" BackColor="#ECE9D8" CloseButtonUrl="00020440" ContentHtml="Press ESC to close this dialog. Also try to resize the dialog!" HeaderImageUrl="00020441" HeaderImageHeight="27" AllowResize="True" MinHeight="100" MinWidth="150"> <FooterStyleActive CssText="padding-right: 4px; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; padding-top: 4px; font-family: tahoma"> </FooterStyleActive> <HeaderStyleActive CssText="background-image:url(00020442);color:#444444;font-family:'trebuchet ms';font-size:10pt;font-weight:bold;padding-a:0px;padding-b:0px;padding-bottom:7px;padding-c:0px;padding-d:0px;padding-left:8px;padding-right:0px;padding-top:0px;"> </HeaderStyleActive> <ContentStyleActive CssText="background-color:#f0f0f0;font-family:tahoma;font-size:8pt;padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;"> </ContentStyleActive> <BorderImages BottomBorder="00020409,00020429" RightBorder="00020407,00020427" TopRightCornerBottom="00020405,00020425" TopRightCorner="00020403,00020423" LeftBorder="00020406,00020426" TopLeftCorner="00020401,00020421" BottomRightCorner="00020410,00020430" TopLeftCornerBottom="00020404,00020424" BottomLeftCorner="00020408,00020428" TopBorder="00020402,00020422"></BorderImages> </eo:Dialog> <br /> <strong>Gestisci i tuoi file</strong><br /><br /> <asp:LinkButton ID="LinkButton1" Style="margin-left: 20px;" runat="server" OnClick="btnDownload_Click"><img src="img/download-page-red.gif" style="border:none;" alt="Download" /></asp:LinkButton> <asp:LinkButton ID="btnDownload" runat="server" OnClick="btnDownload_Click">Download selected file</asp:LinkButton><br /> <br /> <eo:FileExplorer ID="FileExplorer1" runat="server" AllowCreateFolder="True" AllowDeleteFolder="True" AllowRenameFile="True" AllowRenameFolder="True" AllowUpload="True" AllowDeleteFile="True" EnableKeyboardNavigation="True" MaxUploadFileSize="10000" DemoMode="False" onfileuploaded="FileExplorer1_FileUploaded" onfiledeleted="FileExplorer1_FileDeleted" onfilerenamed="FileExplorer1_FileRenamed" onfolderdeleted="FileExplorer1_FolderDeleted" onfolderrenamed="FileExplorer1_FolderRenamed"> <LayoutTemplate> <%--<p> Selected File: <asp:Label runat="server" ID="PathLabel"></asp:Label> </p>--%> <eo:Splitter ID="LeftSplitter" runat="server" Height="320px" Width="800px" ControlSkinID="None" BorderStyle="Solid" BorderWidth="1px" BorderColor="#A0A0A0" DividerImage="00080411" DividerSize="10" DividerCenterImage="00080412" ClientSideOnResized="leftsplitter_resize_handler"> <eo:SplitterPane ID="SplitterPane1" runat="server" Height="200px" Width="260px" ScrollBars="None"> <eo:ToolBar ID="Toolbar1" runat="server" Width="100%" BackgroundImageRight="00100102" BackgroundImage="00100103" BackgroundImageLeft="00100101" SeparatorImage="00100104"> <DownStyle CssText="border-right: #335ea8 1px solid; padding-right: 2px; border-top: #335ea8 1px solid; padding-left: 4px; padding-bottom: 1px; border-left: #335ea8 1px solid; padding-top: 3px; border-bottom: #335ea8 1px solid; background-color: #99afd4; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </DownStyle> <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 3px; border-top: #335ea8 1px solid; padding-left: 3px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; background-color: #c2cfe5; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </HoverStyle> <NormalStyle CssText="padding-right: 4px; padding-left: 4px; padding-bottom: 3px; border-top-style: none; padding-top: 3px; border-right-style: none; border-left-style: none; border-bottom-style: none; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </NormalStyle> <ItemTemplates> <eo:ToolBarItem Type="Custom"> <HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </HoverStyle> <DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </DownStyle> <NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </NormalStyle> </eo:ToolBarItem> <eo:ToolBarItem Type="DropDownMenu"> <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 3px; border-top: #335ea8 1px solid; padding-left: 3px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; background-color: #c2cfe5; cursor:hand; background-image: url(00100106); background-position-x: right;"> </HoverStyle> <DownStyle CssText="border-right: #335ea8 1px solid; padding-right: 2px; border-top: #335ea8 1px solid; padding-left: 4px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 3px; border-bottom: none; background-color:transparent; cursor:hand; background-image: url(00100105); background-position-x: right;"> </DownStyle> <NormalStyle CssText="padding-right: 4px; padding-left: 4px; padding-bottom: 3px; border-top-style: none; padding-top: 3px; border-right-style: none; border-left-style: none; border-bottom-style: none; cursor:hand; background-image: url(00100105); background-position-x: right;"> </NormalStyle> </eo:ToolBarItem> </ItemTemplates> <Items> <eo:ToolBarItem Type="Custom"> <CustomItem>  Folders:   </CustomItem> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101055" CommandName="NewFolder" ToolTip="New Folder"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101054" CommandName="RenameFolder" ToolTip="Rename Folder"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101061" CommandName="DeleteFolder" ToolTip="Delete Folder"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101069" CommandName="Refresh" ToolTip="Refresh"> </eo:ToolBarItem> </Items> </eo:ToolBar> <eo:TreeView ID="FolderTree" Style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px; padding-top: 5px" runat="server" Height="100px" Width="100px" ControlSkinID="None"> <LookNodes> <eo:TreeNode ImageUrl="00030301" DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;color:Gray;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;" CollapsedImageUrl="00030301" ItemID="_Default" NormalStyle-CssText="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; COLOR: black; BORDER-TOP-STYLE: none; PADDING-TOP: 1px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none" ExpandedImageUrl="00030302" SelectedStyle-CssText="background-color:#316ac5;border-bottom-color:#999999;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#999999;border-left-style:solid;border-left-width:1px;border-right-color:#999999;border-right-style:solid;border-right-width:1px;border-top-color:#999999;border-top-style:solid;border-top-width:1px;color:White;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;"> </eo:TreeNode> </LookNodes> <TopGroup Style-CssText="background-color:white;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;"> <Nodes> </Nodes> </TopGroup> </eo:TreeView> </eo:SplitterPane> <eo:SplitterPane ID="SplitterPane2" runat="server" Width="400px" ScrollBars="None"> <eo:Splitter ID="RightSplitter" runat="server" Height="100%" Width="100%" ControlSkinID="None" DividerImage="00080411" DividerSize="10" DividerCenterImage="00080412" ClientSideOnResized="rightsplitter_resize_handler"> <eo:SplitterPane ID="SplitterPane3" runat="server" ScrollBars="None"> <eo:Grid runat="server" ID="FileGrid" Height="294px" Width="320px" Font-Size="8.75pt" Font-Names="Tahoma" GridLines="None" FixedColumnCount="0" ColumnHeaderDescImage="00050205" GridLineColor="240, 240, 240" ItemHeight="19" ColumnHeaderAscImage="00050204" ColumnHeaderHeight="24" ColumnHeaderDividerImage="00050203" BackColor="White"> <ColumnTemplates> <eo:TextBoxColumn> <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma"> </TextBoxStyle> </eo:TextBoxColumn> <eo:DateTimeColumn> <DatePicker DayCellHeight="16" OtherMonthDayVisible="True" SelectedDates="" TitleRightArrowImageUrl="DefaultSubMenuIcon" DisabledDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" DayHeaderFormat="FirstLetter" ControlSkinID="None" DayCellWidth="19"> <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma"> </CalendarStyle> <PickerStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </PickerStyle> <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"> </SelectedDayStyle> <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid"> </TodayStyle> <TitleArrowStyle CssText="cursor:hand"></TitleArrowStyle> <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px"> </MonthStyle> <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid"> </DayHoverStyle> <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"> </DisabledDayStyle> <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid"> </DayHeaderStyle> <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"> </OtherMonthDayStyle> <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid"> </DayStyle> <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;"> </TitleStyle> </DatePicker> </eo:DateTimeColumn> <eo:MaskedEditColumn> <MaskedEdit ControlSkinID="None" TextBoxStyle-CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; font-family:Courier New;font-size:8pt;"> </MaskedEdit> </eo:MaskedEditColumn> <eo:CheckBoxColumn> <CellStyle CssText="padding-left:8px;padding-top:1px;"></CellStyle> </eo:CheckBoxColumn> </ColumnTemplates> <ItemStyles> <eo:GridItemStyleSet> <ItemHoverStyle CssText="background-image: url(00050206); background-repeat: repeat-x"> </ItemHoverStyle> <SelectedStyle CssText="background-image: url(00050207); background-repeat: repeat-x"> </SelectedStyle> <CellStyle CssText="padding-left:8px;padding-top:2px;cursor:default;white-space:nowrap;"> </CellStyle> <ItemStyle CssText="background-color: white"></ItemStyle> <AlternatingItemStyle CssText="background-color: #f4f4f4"></AlternatingItemStyle> </eo:GridItemStyleSet> </ItemStyles> <ColumnHeaderHoverStyle CssText="background-image:url('00050202');padding-left:8px;padding-top:4px;"> </ColumnHeaderHoverStyle> <ColumnHeaderStyle CssText="background-image:url('00050201');padding-left:8px;padding-top:4px;"> </ColumnHeaderStyle> <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;"> </FooterStyle> <Columns> <eo:CheckBoxColumn Name="Delete" Width="30"> </eo:CheckBoxColumn> <eo:StaticColumn Name="Icon" Width="24"> </eo:StaticColumn> <eo:TextBoxColumn Name="FileName" HeaderText="File Name" Width="-1" MinWidth="150"> </eo:TextBoxColumn> <eo:EditCommandColumn Name="Rename" Width="48"> </eo:EditCommandColumn> <eo:StaticColumn Name="FileSize" HeaderText="File Size" Width="80"> </eo:StaticColumn> </Columns> </eo:Grid> <div id="uploader_div" style="display: none; height: 55px"> <eo:AJAXUploader ID="FileUploader" Width="250px" runat="server" AutoUpload="True" HideDisabledToolBarButton="True" TempFileLocation="~/CMS/TempFile" ClientSideOnStart="upload_begin" ClientSideOnDone="upload_done" ClientSideOnCancel="upload_done"> <LayoutTemplate> <table cellspacing="0" cellpadding="2" width="100%" border="0"> <tr> <td style="padding-top: 5px"> <eo:ProgressBar ID="ProgressBar" runat="server" ControlSkinID="Windows_XP"> </eo:ProgressBar> </td> </tr> <tr> <td> <asp:PlaceHolder ID="ProgressTextPlaceHolder" runat="server">Progress Text Place Holder </asp:PlaceHolder> </td> </tr> </table> </LayoutTemplate> </eo:AJAXUploader> </div> <eo:ToolBar ID="Toolbar2" runat="server" Width="100%" BackgroundImageRight="00100102" BackgroundImage="00100103" BackgroundImageLeft="00100101" SeparatorImage="00100104"> <DownStyle CssText="border-right: #335ea8 1px solid; padding-right: 2px; border-top: #335ea8 1px solid; padding-left: 4px; padding-bottom: 1px; border-left: #335ea8 1px solid; padding-top: 3px; border-bottom: #335ea8 1px solid; background-color: #99afd4; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </DownStyle> <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 3px; border-top: #335ea8 1px solid; padding-left: 3px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; background-color: #c2cfe5; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </HoverStyle> <NormalStyle CssText="padding-right: 4px; padding-left: 4px; padding-bottom: 3px; border-top-style: none; padding-top: 3px; border-right-style: none; border-left-style: none; border-bottom-style: none; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </NormalStyle> <ItemTemplates> <eo:ToolBarItem Type="Custom"> <HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </HoverStyle> <DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </DownStyle> <NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </NormalStyle> </eo:ToolBarItem> <eo:ToolBarItem Type="DropDownMenu"> <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 3px; border-top: #335ea8 1px solid; padding-left: 3px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; background-color: #c2cfe5; cursor:hand; background-image: url(00100106); background-position-x: right;"> </HoverStyle> <DownStyle CssText="border-right: #335ea8 1px solid; padding-right: 2px; border-top: #335ea8 1px solid; padding-left: 4px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 3px; border-bottom: none; background-color:transparent; cursor:hand; background-image: url(00100105); background-position-x: right;"> </DownStyle> <NormalStyle CssText="padding-right: 4px; padding-left: 4px; padding-bottom: 3px; border-top-style: none; padding-top: 3px; border-right-style: none; border-left-style: none; border-bottom-style: none; cursor:hand; background-image: url(00100105); background-position-x: right;"> </NormalStyle> </eo:ToolBarItem> </ItemTemplates> <Items> <eo:ToolBarItem ImageUrl="00101057" Text="Thumbnail View" CommandName="ThumbnailView"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101058" Text="Grid View" CommandName="GridView"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101056" Text="Upload File" CommandName="Upload"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101056" Text="Cancel Upload" CommandName="CancelUpload"> </eo:ToolBarItem> </Items> </eo:ToolBar> </eo:SplitterPane> <eo:SplitterPane ID="SplitterPane4" runat="server" InitialSize="220" ScrollBars="None"> <eo:ToolBar ID="Toolbar3" runat="server" Width="100%" BackgroundImageRight="00100102" BackgroundImage="00100103" BackgroundImageLeft="00100101" SeparatorImage="00100104"> <DownStyle CssText="border-right: #335ea8 1px solid; padding-right: 2px; border-top: #335ea8 1px solid; padding-left: 4px; padding-bottom: 1px; border-left: #335ea8 1px solid; padding-top: 3px; border-bottom: #335ea8 1px solid; background-color: #99afd4; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </DownStyle> <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 3px; border-top: #335ea8 1px solid; padding-left: 3px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; background-color: #c2cfe5; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </HoverStyle> <NormalStyle CssText="padding-right: 4px; padding-left: 4px; padding-bottom: 3px; border-top-style: none; padding-top: 3px; border-right-style: none; border-left-style: none; border-bottom-style: none; cursor:hand; FONT-SIZE: 12px; FONT-FAMILY: Tahoma;"> </NormalStyle> <ItemTemplates> <eo:ToolBarItem Type="Custom"> <HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </HoverStyle> <DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </DownStyle> <NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"> </NormalStyle> </eo:ToolBarItem> <eo:ToolBarItem Type="DropDownMenu"> <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 3px; border-top: #335ea8 1px solid; padding-left: 3px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; background-color: #c2cfe5; cursor:hand; background-image: url(00100106); background-position-x: right;"> </HoverStyle> <DownStyle CssText="border-right: #335ea8 1px solid; padding-right: 2px; border-top: #335ea8 1px solid; padding-left: 4px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 3px; border-bottom: none; background-color:transparent; cursor:hand; background-image: url(00100105); background-position-x: right;"> </DownStyle> <NormalStyle CssText="padding-right: 4px; padding-left: 4px; padding-bottom: 3px; border-top-style: none; padding-top: 3px; border-right-style: none; border-left-style: none; border-bottom-style: none; cursor:hand; background-image: url(00100105); background-position-x: right;"> </NormalStyle> </eo:ToolBarItem> </ItemTemplates> <Items> <eo:ToolBarItem ImageUrl="00101065" ToolTip="Best Fit" CommandName="BestFit"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101065" ToolTip="Actual Size" CommandName="ActualSize"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101067" ToolTip="Zoom In" CommandName="ZoomIn"> </eo:ToolBarItem> <eo:ToolBarItem ImageUrl="00101068" ToolTip="Zoom Out" CommandName="ZoomOut"> </eo:ToolBarItem> </Items> </eo:ToolBar> <asp:PlaceHolder runat="server" ID="PreviewPanel"></asp:PlaceHolder> </eo:SplitterPane> </eo:Splitter> </eo:SplitterPane> </eo:Splitter> </LayoutTemplate> </eo:FileExplorer> </div> </form> </body> </html>


Code: C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;

public partial class areaclientedoccli : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            checkSessione();

            EO.Web.Runtime.DebugLevel = 0;

            string utente = Session["userSito"].ToString().Trim();

            utenteSito ut = new utenteSito();

            if (ut.userEsistente(utente))
            {
                FileExplorer1.RootFolder = @"~/CMS/clienti/" + ut.cartellaScrittura;
                FileExplorer1.AllowDeleteFile = true;
                FileExplorer1.AllowDeleteFolder = true;
                FileExplorer1.AllowRenameFile = true;
                FileExplorer1.AllowRenameFolder = true;
                FileExplorer1.AllowUpload = true;
                FileExplorer1.AllowCreateFolder = true;
            }
        }
    }
    protected void checkSessione()
    {
        if (Session["userSito"] == null)
        {
            Response.Redirect("areaClienteSessionEnd.aspx");
        }
        else if (Session["userSito"].ToString() == "")
        {
            Response.Redirect("areaClienteSessionEnd.aspx");
        }
    }
    protected void btnDownload_Click(object sender, EventArgs e)
    {
        string nomefile = FileExplorer1.SelectedFile;

        if (nomefile != null && nomefile != "")
        {
            DownloadFile(nomefile, true);
        }
        else
        {
            Dialog1.ContentHtml = "Attenzione! Non e' stato selezionato nessun file.";
            Dialog1.Visible = true;
            ClientScript.RegisterStartupScript(GetType(), "MyScript", "&lt;SCRIPT Language='JavaScript'&gt;eo_GetObject('Dialog1').show(false);&lt;/SCRIPT&gt;");
        }
    }
    private void DownloadFile(string fname, bool forceDownload)
    {
        string path = MapPath(fname);
        string name = Path.GetFileName(path);
        string ext = Path.GetExtension(path);
        string type = "";
        // set known types based on file extension  
        if (ext != null)
        {
            switch (ext.ToLower())
            {
                case ".htm":
                case ".html":
                    type = "text/HTML";
                    break;

                case ".txt":
                    type = "text/plain";
                    break;

                case ".doc":
                case ".rtf":
                    type = "Application/msword";
                    break;
            }
        }
        if (forceDownload)
        {
            Response.AppendHeader("content-disposition",
                "attachment; filename=" + name);
        }
        if (type != "")
            Response.ContentType = type;
        Response.WriteFile(path);
        Response.End();
    }
    protected void FileExplorer1_FileUploaded(object sender, EO.Web.FileExplorerEventArgs e)
    {
        checkSessione();

        utenteSito ut = new utenteSito();
        ut.getUtenteByUser(Session["userSito"].ToString().Trim());

        documentoCaricato doc = new documentoCaricato();
        doc.codUtenteSito = ut.id;
        doc.nomeDocumento = e.FileName;
        doc.dataDocumento = System.DateTime.Now.ToString();

        doc.insert();
    }
    protected void FileExplorer1_FileDeleted(object sender, EO.Web.FileExplorerEventArgs e)
    {
        //utenteSito ut = new utenteSito();
        //ut.getUtenteByUser(Session["userSito"].ToString().Trim());

        documentoCaricato doc = new documentoCaricato();

        doc.deleteByNomeDocumento(e.FileName);
    }
    protected void FileExplorer1_FolderRenamed(object sender, EO.Web.FileExplorerEventArgs e)
    {
        FileExplorer1.DataBind();
        documentoCaricato doc = new documentoCaricato();
        doc.renameByNewPathNameOldPathName(e.NewFileName, e.FileName);
    }
    protected void FileExplorer1_FolderDeleted(object sender, EO.Web.FileExplorerEventArgs e)
    {
        FileExplorer1.DataBind();
        documentoCaricato doc = new documentoCaricato();
        doc.deleteByFolderName(e.FileName);
    }
    protected void FileExplorer1_FileRenamed(object sender, EO.Web.FileExplorerEventArgs e)
    {
        FileExplorer1.DataBind();
        documentoCaricato doc = new documentoCaricato();
        doc.renameByNewPathNameOldPathName(e.NewFileName, e.FileName);
    }
}
eo_support
Posted: Sunday, February 27, 2011 3:50:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This is an issue in the current version. The current version does not refresh the file list when folder is deleted (it only refreshes it when current folder changes). We will look into it and see what we can ---- probably automatically changes the current folder to parent folder, or simply clear the file list.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.