Setting the default page for ASP.NET (Visual Studio) server configuration

前端 未结 8 755
北荒
北荒 2020-12-05 13:38

When I build and run my application I get a directory listing in the browser (also happens for sub folders), and I have to click on Index.aspx. It\'s makin

相关标签:
8条回答
  • 2020-12-05 14:19

    If you are running against IIS rather than the VS webdev server, ensure that Index.aspx is one of your default files and that directory browsing is turned off.

    0 讨论(0)
  • 2020-12-05 14:30

    Right click on the web page you want to use as the default page and choose "Set as Start Page" whenever you run the web application from Visual Studio, it will open the selected page.

    0 讨论(0)
提交回复
热议问题