When I run my application on localhost I get a directory开发者_JS百科 listing and have to click on 'Index.aspx' to view the page.
I have already set the Set As Start Page
to 'Index.aspx', which means when I press 'F5', 'Index.aspx' is opened.
This works fine, but when navigating through the site, if there is a link, such as '/FolderName', I get a directory listing, and have to manually change the URL to '/FolderName/Index.aspx'.
I believe this is because by default, the default page is 'Default.aspx'?
Is it possible to change this to 'Index.aspx'? It would save me a lot of time!
AFAIK this is not configurable. Your best option would be to rename all your index.aspx files to default.aspx. See the following link with an accepted answer to back up mine. Have fun with your renames :)
asp.net application default file Index.aspx
精彩评论