|
Rank: Newbie Groups: Member
Joined: 8/23/2009 Posts: 9
|
hi. i use the sample code to show fileExplorer i changed the path to be dynamic and allowed delete and edit but i get error when i try delete or edit. [NullReferenceException: Object reference not set to an instance of an object.] EO.Web.Internal.c8.a(h6[] A_0) +863 EO.Web.Internal.c8.a(h6 A_0) +885 EO.Web.Internal.bs.aa() +316 EO.Web.WebControlBase.a(Object A_0) +127 EO.Web.Grid.a(Object A_0) +36 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +258 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +133 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306 System.Web.UI.Page.LoadAllState() +467 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1759
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, There is no reason if everything is exactly the same and it works for the sample but does not work for you. Please create a test page or test project to reproduce the problem and then send to us. Make sure your test code runs. See here for more details: http://www.essentialobjects.com/forum/postst3013_I-run-into-a-problem-can-I-send-over-my-code-so-that-you-can-take-a-look.aspxThanks
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2009 Posts: 9
|
hi, its work with master Page. there is my test aspx code:
Code: HTML/ASPX
<%@ Page Language="C#" MasterPageFile="~/studio/event/eventmaster.master" AutoEventWireup="false"
Inherits="studio_event_event" Title="Untitled Page" CodeBehind="event.aspx.cs" %>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<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>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:HyperLink NavigateUrl="/run5/event/personlogin.aspx?" ID="HyperLink1" Target="_blank"
runat="server">Login as a customer</asp:HyperLink>
<br />
<br />
<br />
<eo:FileExplorer runat="server" ID="fileExplorer1" AllowCreateFolder="True" AllowDeleteFolder="True"
AllowRenameFile="True" AllowRenameFolder="True" AllowUpload="True" AllowDeleteFile="True"
EnableKeyboardNavigation="True" TargetControl="TextBox1">
<LayoutTemplate>
<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="180px" 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" runat="server" Height="400px" Width="250px" ControlSkinID="None">
<LookNodes>
<eo:TreeNode ImageUrl="00030301" DisabledStyle-CssText="background-color:transparent;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;
BACKGROUND-COLOR: transparent;"
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;">
</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="" runat="server"
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" runat="server" 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" ClientSideOnStart="upload_begin" ClientSideOnDone="upload_done"
ClientSideOnCancel="upload_done" AllowedExtension=".gif|.bmp|.png|.jpg|.jpeg|.tif">
<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>
<p>
Selected File:
<asp:TextBox runat="server" ID="TextBox1" Width="600"></asp:TextBox>
</p>
</asp:Content>
Code: C#
using System;
using Eventact.Projects;
using System.IO;
using EO.Web;
public partial class studio_event_event : System.Web.UI.Page
{
string virtualPath = "";
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
Event ev = Event.GetCurrent();
virtualPath = "/" + ev.CompanyFolder + "/" + ev.EventFolder + "/";
if (IsPostBack == false)
{
HyperLink1.NavigateUrl += Company.GetCompanyIDAsUrlParam(Page) + "&" + Event.GetEventIDAsUrlParam(Page);
if (!System.IO.Directory.Exists(Server.MapPath(virtualPath)))
System.IO.Directory.CreateDirectory(Server.MapPath(virtualPath));
if (!System.IO.Directory.Exists(Server.MapPath(virtualPath + "Temp/")))
System.IO.Directory.CreateDirectory(Server.MapPath(virtualPath + "Temp/"));
}
fileExplorer1.RootFolder = Server.MapPath(virtualPath);
getUploader().TempFileLocation = Server.MapPath(virtualPath + "Temp/");
}
private AJAXUploader getUploader()
{
AJAXUploader au = (AJAXUploader)fileExplorer1.FindControl("FileUploader");
return au;
}
}
thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please create a test project that runs. We are not in a position to review or troubelshoot your code. So you need to isolate the problem into a test page or project that we can load and run here. The test page should only include the code that is needed to demonstrate the problem and nothing else.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2009 Posts: 9
|
Code: C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
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 Eventact.Projects;
using EO.Web;
public partial class web_WebForm1 : System.Web.UI.Page
{
string virtualPath = "";
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
Event ev = Event.GetCurrent();
virtualPath = "/aaaaa/";
if (IsPostBack == false)
{
if (!System.IO.Directory.Exists(Server.MapPath(virtualPath)))
System.IO.Directory.CreateDirectory(Server.MapPath(virtualPath));
if (!System.IO.Directory.Exists(Server.MapPath(virtualPath + "Temp/")))
System.IO.Directory.CreateDirectory(Server.MapPath(virtualPath + "Temp/"));
}
fileExplorer1.RootFolder = Server.MapPath(virtualPath);
getUploader().TempFileLocation = Server.MapPath(virtualPath + "Temp/");
}
private AJAXUploader getUploader()
{
AJAXUploader au = (AJAXUploader)fileExplorer1.FindControl("FileUploader");
return au;
}
}
Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="web_WebForm1" %>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<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>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<eo:FileExplorer runat="server" ID="fileExplorer1" AllowCreateFolder="True" AllowDeleteFolder="True"
AllowRenameFile="True" AllowRenameFolder="True" AllowUpload="True" AllowDeleteFile="True"
EnableKeyboardNavigation="True" TargetControl="TextBox1">
<LayoutTemplate>
<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="180px" 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" runat="server" Height="400px" Width="250px" ControlSkinID="None">
<LookNodes>
<eo:TreeNode ImageUrl="00030301" DisabledStyle-CssText="background-color:transparent;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;
BACKGROUND-COLOR: transparent;"
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;">
</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 ID="DatePicker1" DayCellHeight="16" OtherMonthDayVisible="True" SelectedDates="" runat="server"
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 ID="MaskedEdit1" ControlSkinID="None" runat="server" 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" ClientSideOnStart="upload_begin" ClientSideOnDone="upload_done"
ClientSideOnCancel="upload_done" AllowedExtension=".gif|.bmp|.png|.jpg|.jpeg|.tif">
<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>
<p>
Selected File:
<asp:TextBox runat="server" ID="TextBox1" Width="600"></asp:TextBox>
</p>
</div>
</form>
</body>
</html>
the preview is not working here
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Can you provide more details about "the preview is not working here"? For example, we do not know whether it's the preview panel not showing, it's showing the wrong item, or it gives you an error message.
You really need to understand our support policy carefully. Your previous account has been banned due to reckless posts. If you wish us to look into an issue for you, you need to provide as much information as possible. Usually we would need code and steps to reproduce. In case you don't even describe the error clearly, there is no way we will look into it for you. The bottom line is we need you to isolate and demonstrate the error to us clearly. If you fail to do that, we will not look into it. Hope this clarifies our position.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2009 Posts: 9
|
hi you right .
the preview write "Preview Not Available" for all images file that i uploaded. and one more thing is that the tumbnailView show like empty image place.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will see "Preview Not Available" when the FileExplorer can not get the correct image Urls. Your code looks fine to us. The only thing special in your code is that you are dynamically setting the path for FileExplorer and uploader. So you can try two things:
1. Remove the code that dynamically set the folders. That can tell you whether it has anything to do with your path; 2. Try to move the code in your Page Load to Init event hander. Init event occurs earlier than Load event;
If the problem continues, please create a complete test project that demonstrates the problem. So far we still can not see any of the problems you claimed, so we can only give you our best guess. However if you can provide a test project that can clearly isolate and demonstrate the problem, we will be able to look into further.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2009 Posts: 9
|
i changed the path to be static for the test,
Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="web.WebForm1" %>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
<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>
</head>
<body>
<form id="form1" runat="server">
<br />
<div style="padding-left:5px;">
<eo:FileExplorer runat="server" ID="fileExplorer1" AllowCreateFolder="false" AllowDeleteFolder="false"
AllowRenameFile="false" AllowRenameFolder="false" AllowUpload="True" AllowDeleteFile="false"
EnableKeyboardNavigation="false" TargetControl="TextBox1" RootFolder="c:\images">
<LayoutTemplate>
<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="180px" 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" runat="server" Height="400px" Width="250px" ControlSkinID="None">
<LookNodes>
<eo:TreeNode ImageUrl="00030301" DisabledStyle-CssText="background-color:transparent;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;
BACKGROUND-COLOR: transparent;"
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;">
</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 ID="DatePicker1" DayCellHeight="16" OtherMonthDayVisible="True" SelectedDates="" runat="server"
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 ID="MaskedEdit1" ControlSkinID="None" runat="server" 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" ClientSideOnStart="upload_begin" ClientSideOnDone="upload_done"
ClientSideOnCancel="upload_done" AllowedExtension=".gif|.bmp|.png|.jpg|.jpeg|.tif" TempFileLocation="c:\images\Temp">
<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>
<p>
Selected File:
<asp:TextBox runat="server" ID="TextBox1" Width="600"></asp:TextBox>
</p>
</div>
</form>
</body>
</html>
Code: C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
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;
namespace web
{
public partial class WebForm1 : System.Web.UI.Page
{
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{ }
}
}
still i cant prview images
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is normal. You can not preview an image outside of your web application root. For example, if your web application root is "c:/wwwroot/app1" and if you set the FileExplorer's RootFolder as "~/images", then everything including preview will work. However if you set RootFolder as "c:/images" it will NOT work. This is because the client side can not get a direct Url towards your image since your image is not inside your application.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2009 Posts: 9
|
eo_support wrote:Hi,
This is normal. You can not preview an image outside of your web application root. For example, if your web application root is "c:/wwwroot/app1" and if you set the FileExplorer's RootFolder as "~/images", then everything including preview will work. However if you set RootFolder as "c:/images" it will NOT work. This is because the client side can not get a direct Url towards your image since your image is not inside your application.
Thanks! my application is blabla.com/office/ and the image folder is blabla.com/abc/images its not suppose to show me?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Check whether your RootFolder starts with "~", for example "~/abc/images". "~" stands for your application root. That tells the FileExplorer that you are browsing a folder inside your application root. If you give it an absolute directory such as "blabla.com/abc/images", it won't know it's within your site and it won't preview.
|
|
Rank: Newbie Groups: Member
Joined: 3/4/2010 Posts: 3
|
hi i asked about the delete and rename, they both have the same error like in the first post image
thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/4/2010 Posts: 3
|
i have notice this error also when i checked the file in "a" folder and then click on "b" folder it throw it
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please provide a test page and steps that demonstrates the problem.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/4/2010 Posts: 3
|
Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/studio/event/eventdialogmaster.master"
CodeBehind="FileExplorer.aspx.cs" Inherits="web_studio_event_FileExplorer" %>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<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();
}
function clientside_error_handler(control, error, message)
{
alert('1');
// if (toolBarItem.getCommandName() == "PasteCode")
//Editor1.execCommand("Paste", null, "code");
alert(error+","+message);
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="boxTop" style="padding-left: 5px">
File Explorer
</div>
<div class="boxMiddle" style="padding-left: 5px; padding-bottom: 5px">
<eo:FileExplorer runat="server" ID="FileExplorer1" AllowCreateFolder="False" AllowDeleteFolder="True"
AllowRenameFile="True" AllowRenameFolder="True" AllowUpload="True" AllowDeleteFile="True"
EnableKeyboardNavigation="True" TargetControl="TextBox1" Height="320px" DemoMode="False"
EnableViewState="True" ClientSideOnError="clientside_error_handler">
<PathMappings>
<eo:PathMapping DisplayName="Root Folder" />
</PathMappings>
<LayoutTemplate>
<eo:Splitter ID="LeftSplitter" runat="server" Height="320px" Width="700px" 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="180px" 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="~/eo_upload" ClientSideOnStart="upload_begin"
ClientSideOnDone="upload_done" ClientSideOnCancel="upload_done" AllowedExtension=".gif|.bmp|.png|.jpg|.jpeg|.tif">
<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>
<div class="boxBottom">
Selected File:
<asp:TextBox runat="server" ID="TextBox1" Width="600"></asp:TextBox>
</div>
</asp:Content>
my step : 1. open one of the folder under the parent folder 2. check or check and uncheck the file inside 3.try to open other folder and Boom
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please do not post your code as is because we cannot run it here. We will need you to isolate the problem into a standalone test page/project that we can load and run at here.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/7/2010 Posts: 7
|
thats the error i get
Server Error in '/' Application.
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] EO.Web.Internal.c8.a(h6[] A_0) +863 EO.Web.Internal.c8.a(h6 A_0) +885 EO.Web.Internal.bs.aa() +316 EO.Web.WebControlBase.a(Object A_0) +127 EO.Web.Grid.a(Object A_0) +36 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +183 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +218 System.Web.UI.Page.LoadAllState() +312 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have asked you multiple times to isolate the problem into a test page that can reproduce the problem. The issue will not be investigated until you do so. We need such a page not only to reproduce the problem, but also to verify whatever fix/solution that we may come up will indeed work for you. Without such a page it would be like shooting in the dark and neither of us will know for sure whether the issue is resolved.
Thanks!
|
|