Files

A

ats@jbex

I am using VB.Net to do the code behind pages for a website. Is it possible
to view files from a network drive without that drive being a virtual
directory? For example, website is at www.hostname.com. Can I list some
documents (.pdf's) here that are foe example in \\T:\DocsFolder and be able
to view them by clicking them?
--
ats@jbex

The world is my expense
The cost of my desire
Jesus blessed me with its future
And I protect it with fire

Rage Against The Machine - Sleep Now In The Fire
 
P

Patrice

You can code this that is your page could list those files, presents them
and react acdoingly to clicks. The account under whihc the page runs will
need to have access to this network share...
 
M

Mark S. Milley, MCSD (BinarySwitch)

Hello Allen -

A more secure approach is to create a new, limited account on the
domain that would have access to that resource, then use .NET
impersonation to impersonate that account ONLY on the pages that need
it.

In addition, make sure that if you use this approach, you store the
username and password encrypted in the registry of the web server
instead of leaving them as plain text in the configuration or code
files.

Good Luck,

-Mark
 
A

ats@jbex

Hello Allen -

A more secure approach is to create a new, limited account on the
domain that would have access to that resource, then use .NET
impersonation to impersonate that account ONLY on the pages that need
it.

In addition, make sure that if you use this approach, you store the
username and password encrypted in the registry of the web server
instead of leaving them as plain text in the configuration or code
files.

Good Luck,

-Mark

Thanks for that. Using the registry for username/password combo's os
something that I do anyway. Will try the limited account approach to the
resource. The main part of the original question though was how to go about
doing it.

Thanks

--
ats@jbex

You have been dying since the day
You were born
You know it has all been planned

Metallica - The Four Horsemen
 

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

Similar Threads


Top