i like to implement the same as below in asp.net application
is it possible by this way ?
author said like this ..
"By default when accessing any directory which does not contain an index file (ex: http://yourdomain.com/images/) a directory listing will be shown displaying a list of the files in that folder. Simply adding a blank/ 0 byte text file named “index.html” will prevent this directory list from being displayed"
But it doesnot work
if i have index.htm in a folder of application and then opened the directory listing on the browser it stills displays the listing and not showing the index.htm page ?
what is alternate solution for .htaccess in asp.net application?
is this the only way
Using IIS manager right click on the folder that you want to disable browsing , and then uncheck "Directory Browsing" option
Any other way we can implement it by either using .htaccess approach or using vb/C# coding?