开发者

Change built-in webserver to use 'Index.aspx' as default page

开发者 https://www.devze.com 2023-03-13 08:47 出处:网络
When I run my application on localhost I get a directory开发者_JS百科 listing and have to click on \'Index.aspx\' to view the page.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消