Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Select a file under the Portal root
Previous Previous
 
Next Next
New Post 7/1/2008 3:37 AM
Unresolved
User is offline Simon Holman
42 posts
www.expressnet.com.au
10th Ranked




Select a file under the Portal root 

I want to be able to select a file from somewhere under the portals root directory and store the path in a textbox.

What's the easiest way to create a File Selector? I would like kind of like an file upload browse option but for the server, not the client.

 
New Post 7/1/2008 5:29 AM
User is offline Will Strohl
1333 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: Select a file under the Portal root 

Creating a file selector that browses the root directory is a bit of a security issue.  That is why there is the file system "sandbox" in the Portals directory.  The reason is, that such a file selector would have full control over all of those files.  This also presents a usability problem for inexperienced users.  I am fairly certain that you are going to write this yourself.  If you stick to the main classes in the System.IO namespace, such a tool should be pretty simple to write.

http://msdn.microsoft.com/en-us/library/system.io(VS.80).aspx


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/2/2008 5:57 AM
User is offline Simon Holman
42 posts
www.expressnet.com.au
10th Ranked




Re: Select a file under the Portal root 

I'm talking about the portal root ie /Portals/0 directory and below, not the installation root directory.

 

 
New Post 7/2/2008 6:27 PM
User is offline Will Strohl
1333 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: Select a file under the Portal root 

Ah!  I got it!  You can use the URL Control from the DNN Core like so:

<!-- IN THE TOP OF YOUR MODULE -->
<%@ Register TagPrefix="dnn" TagName="URL" Src="~/controls/URLControl.ascx" %>
<!-- SOMEWHERE IN YOUR MODULE -->
<dnn:url id="ctlFileBrowser" runat="server" width="250"
    shownewwindow
="False" 
    showusers
="False" 
    ShowFiles
="True" 
    Required
="True" 
    ShowLog
="False" 
    ShowTrack
="False" 
    ShowUrls
="False" 
    ShowTabs
="False" />

Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/3/2008 8:44 PM
User is offline Simon Holman
42 posts
www.expressnet.com.au
10th Ranked




Re: Select a file under the Portal root 

Will

This is what I'm after.

Is there any documentation on this control anywhere? I can't seem to find any.

Thanks

Simon

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Select a file under the Portal root
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com
Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP