Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Open a file outside the Web Folder

Posted on 2008-06-17
4
Medium Priority
?
548 Views
Last Modified: 2012-08-13
I am creating a document management system that will save files to network drives in various folders.
These folder will not be inside the same folder structure as the web site that accesses them.

How do I access these files so that people can download them.
ie. window.open("Z:/files/test.pdf") or set this as a A tag.

I am starting to think that the only thing that I could do is copy a temp file to the Web Folders and use from there.

Any ideas?
I am using ASP.NET
0
Comment
Question by:lawso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 21809965
Are you going to trigger the download through a web page?
0
 

Author Comment

by:lawso
ID: 21810603
Yep.
At the moment I am trying to add an Attribute to an ImageButton that will open in another window.
0
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 1000 total points
ID: 21810634
Then you should look for samples on writing to the HttpResponse Stream.  CAPTCHA samples use that technique.  In fact, if you search this site I and others have answered questions about writing to that stream.

Basically what you do is open a stream to read from the file.  You then redirect that stream to the HttpResponse object as an OutputStream to the client's browser which will then show the [Save As] dialog box.
0
 

Author Comment

by:lawso
ID: 21821128
Great idea... sometimes it is good to add another head to an problem.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question