By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,286 Members | 2,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,286 IT Pros & Developers. It's quick & easy.

Open a folder using asp.net

P: n/a
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

Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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).

<sa***********@sify.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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

Nov 19 '05 #2

P: n/a
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:eL*************@TK2MSFTNGP15.phx.gbl...
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...
Nov 19 '05 #3

P: n/a
Very true.

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:u8*************@TK2MSFTNGP12.phx.gbl...
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:eL*************@TK2MSFTNGP15.phx.gbl...
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...

Nov 19 '05 #4

P: n/a
Thanks for your information.

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.