Response.writefile question

G

Guest

I am using Reponse.WriteFile to stream pdf documents to users on my website.
This works fine if the documents are physically on the website (in wwwroot
somewhere). But, how can I get it to have the same functionality with the
documents stored in some other directory on the server, i.e. C:\pdfdocs.
Thanks.
 
T

Terry Olsen

You need to configure Virtual Directories in IIS. Create a Virtual
directory and have it point to the directory with your documents. Then
refer to the virtual directory in your web page.
 
G

Guest

Actually, I already got it working. I don't know why it wouldn't work to
start with. Thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top