Is there a way I can have my code handle "Directory Browsing"? Thanks!

D

davidw

For example, I have a virtual directory - "wfile", I would like user access
http://mysite/wfile, but I want to handle it with my own code instead of
turn on "Directory Browsing", how can I capture that request? IHttpHandler
or IHttpModule?

Thanks!
 
R

Robbe Morris [C# MVP]

Probably the easiest way is to put a default.aspx page in that folder.
The code inside of it would iterate the files/folders in that folder.
 
D

davidw

Thanks for reply! But the issue has not been solved.

I am implementing a webdav, so I need map * to my httphandler, but once I do
that, I can not capture the default call, it neither goes to the
default.aspx(which is reasonable) nor goes to my httphandler, not even my
httpmodule. Any idea?

Thanks!
 

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

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top