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  |  

telerik -- supercharge your DNN websites
  Ads  
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Link to file on remote file server
Previous Previous
 
Next Next
New Post 4/24/2008 5:05 PM
Resolved
User is offline weldonr30
11 posts
10th Ranked


Link to file on remote file server 

Can anyone tell me how to link to a file on a remote file server (not the DNN install location).  I have a sql table with records of file locations that I need to provide a list of links to in a gridview or detailsview.  I would prefer to create the link in my SQL query something along the lines of -

Select '<a href="http://' + [FileLocation] + '">' + [FileDescription] + '</a>' as FileLink

Where the data stored in [FileLocation] would be something like ServerName\Folder\filename.ext

I can't seem to get the link to go outside the DNN site.

Is it not possible to link to another file server?  Thanks for any help.

 
New Post 4/24/2008 5:10 PM
User is offline ErikVB
3004 posts
www.apollo-software.nl
4th Ranked










Re: Link to file on remote file server 

not sure what it is you are trying to do here. First of all, i would build the actual url in the grid template, using data formating code. Second.. i dont understand what you mean that you cannot link outside dnn. What url do you get, and why doesnt it actually link to another server?


Erik van Ballegoij,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

 
New Post 4/25/2008 8:03 AM
User is offline weldonr30
11 posts
10th Ranked


Re: Link to file on remote file server 

Sorry, I know that wasn't very clear at all after I reread the post.   What I am trying to do is download files from a UNC share drive.  I need to build the url in the query as I am using a third party report builder and I don't want to have to dig into the code unless I have to.  I can get the links to work and show up on the page but the exact syntax of the url is what I need.  The way I have been building it, www.<site>.com is always added before the UNC share location so it ends up being something like http://www.<site>.com/\\FileServer\Folder\filename.ext  

Thanks for your help I hope this clears up my question.

 
New Post 4/25/2008 8:56 AM
Accepted Answer 
User is offline Sebastian Leupold
15045 posts
www.deutschnetnuke.de
1st Ranked












Re: Link to file on remote file server 

you cannot link to UNC paths, since they are not reachable from the client pc, the only protocols you can use are http and https. you need either to publish the path, where the file is located or you need to copy the file to a public path or you need to write a custom handler, which can open a file stream on the UNC share and output it to the user computer.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/25/2008 9:30 AM
User is offline weldonr30
11 posts
10th Ranked


Re: Link to file on remote file server 

Thanks, after doing some more research this morning I decided this was not possible also.  Thanks for helping and confirming my conclusion.  I will have to come up with something custom.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Link to file on remote file server
 


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.

 


ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca
MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com

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