Welcome Guest Search | Active Topics | Sign In | Register

File Explorer loading as user control Options
hunpirate
Posted: Thursday, October 8, 2020 12:55:32 PM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 83
Hi,

I've created a user control that is purely just a FileExplorer object. I'm loading this control into a DialogBox div in the <contenttemplate> section


<eo:Dialog id="dlgFileExplorer" runat="server" BackColor="#47729F"
HorizontalAlign="Left" HeaderHtml="Message" ControlSkinID="None" BackShadeColor="Silver" AcceptButton="btnDocumentOK"
CloseButtonUrl="00070101" MinimizeButtonUrl="00070102" RestoreButtonUrl="00070103"
BackShadeOpacity="75" Font-Names="Verdana" VerticalAlign="Middle">
<closeeffect type="Pixelate" />
<showeffect type="Pixelate" />
<headerstyleactive csstext="border-right: #22456a 1px solid; padding-right: 4px; border-top: #ffbf00 3px solid; padding-left: 4px; font-weight: bold; font-size: 11px; padding-bottom: 2px; color: white; padding-top: 2px; border-bottom: #22456a 1px solid; font-family: Verdana; text-align: center" />
<contentstyleactive csstext="background-color:white;border-bottom-color:#22456a;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#728eb8;border-left-width:1px;border-right-color:#22456a;border-right-style:solid;border-right-width:1px;border-top-color:#7d97b6;border-top-style:solid;border-top-width:1px;color:black;font-family:'Courier New', Verdana;font-size:11px;padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
<contenttemplate><div id="divFileExplorer" runat="server" /></contenttemplate>
<footerstyleactive csstext="border-right: #22456a 1px solid; padding-right: 4px; border-top: #7d97b6 1px solid; padding-left: 4px; border-left-width: 1px; font-size: 11px; border-left-color: #728eb8; padding-bottom: 4px; color: white; padding-top: 4px; border-bottom: #22456a 1px solid; font-family: Verdana" />
<headerstyleinactive csstext="text-align: center" />
<footertemplate>
<div style="text-align: center">
<asp:Button ID="btnDocumentOK" runat="server" Text="Close File Browser" CssClass="Btn_Light" /></div>
</footertemplate>
</eo:Dialog>

Private Sub Page_Init(sender As Object, e As EventArgs) Handles Me.Init

fileexplorerctrl = LoadControl("../controls/fileexplorer.ascx")
divFileExplorer.Controls.Add(fileexplorerctrl)

End Sub

I have created some public properties for the control like
TargetControl
RootFolder
AllowedExtension

to configure the FileExplorer after it was loaded.

Is there any way to re-initialize the FileExplorer control TargetControl property value after it was already loaded?

Sorry, never mind. The Root path is changeable. The one I was trying to change to did not have the right NTFS security, hence wasn't expanding.







Thanks

Steve Komaromi

Computer Systems Manager, Lead Developer
Business Risk Partners, Inc.
Tel: 1-(860)-903-0039
eo_support
Posted: Thursday, October 8, 2020 3:29:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Glad that you found out the root cause!


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