Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Website to provide access to documents

0 views
Skip to first unread message

bsta...@oldrepublictitle.com

unread,
Feb 20, 2007, 5:27:38 PM2/20/07
to
Thanks in advance to anyone who has any ideas on this.

I have an ASP.Net 2.0 website set up on a working production web
server. The purpose of the site is to provide access to various
documents including .doc, .xls, .pdf, etc. Once a user signs in, a
customized treeview of documents is displayed. These documents and
their hierarchial relationship have been previously configured using a
seperate application. When a user clicks on a document in the
treeview, the document is accessed via a UNC path and displayed in a
popup window.

This works fine for folks on the inside of our network but not at all
for the customers who need to really use it.

Can anyone shed some light on this? I cannot allow the documents to
be browsed to directly so I don't think I can use URL's for their
paths. The customer must only be allowed to access documents which
they have been granted explicit access to. When a user clicks on a
document they receive a message that says "Cannot find 'file://
somefile.pdf'. Make sure the path or Internet address is correct."

Ideas???

bruce barker

unread,
Feb 20, 2007, 5:50:05 PM2/20/07
to
unc will not work. create a page that returns a document based on name
(or id) and checks access. then put all the docs in a folder that is not
served by iis. the treeview will render a link to the display page with
the doc identified.

-- bruce (sqlwork.com)

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

unread,
Feb 21, 2007, 1:13:04 AM2/21/07
to
You might want to use the Response.WriteFile method to grab the file from
the private server yourself and send it to the user (after you've verified
their credentials of course.)
Here's more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebHttpResponseClassWriteFileTopic.asp

Alternately, you could store the files in a database to automate file
management chores. Here are more details on that approach:
http://SteveOrr.net/articles/EasyUploads.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

<bsta...@oldrepublictitle.com> wrote in message
news:1172010458.8...@k78g2000cwa.googlegroups.com...

0 new messages