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

  • Thread starter Thread starter davidw
  • Start date Start date
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!
 
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.
 
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!
 
Back
Top