Files

  • Thread starter Thread starter ats@jbex
  • Start date Start date
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
 
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...
 
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
 
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
 
Back
Top