Open a folder using asp.net

S

santel_helvis

Hi there,
I wanna open the folder using asp.net. I am using anchor link to do
that. But in href part how shall I give the location. Anyone plz help
me out.

Thanks in advance
 
P

Peter Rilling

What do you mean "open the folder"? Do you mean that you want to simply
list the contents of the folder? Do you the page to look custom? Do you
want to list folder only under the virtual root, or elsewhere on the drive?
Do you want to open a folder on the client machine?

If you want to list the folder on the server that is under the virtual root,
you can simply tell IIS to allow folder browsing in the virtual root
properties. The URL would simply be a folder that does not have a "default"
or "index" file.

If you want browser of folders outside of the virtual root, you will need to
have a webpage act as a proxy where you would pass some information via the
querystring that will identify the location. You would then output the HTML
yourself to display the folder contents.

If you wanted to open a folder on the client, you cannot. The browser has
no control over the client system (for obvious security reasons).
 
M

Mark Rae

If you wanted to open a folder on the client, you cannot. The browser has
no control over the client system (for obvious security reasons).

At least, not natively... There are, of course, plenty of Java applets which
will do this...
 

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

Top