开发者

"Set as start page" and index.html

If I set page "MyPage.aspx" as the start page, do I also need an index.html file?

Th开发者_如何学Pythonanks.


Setting a page as a start page in Visual Studio only affects what page is loaded when you launch from the VS IDE. You'll have to configure IIS when you deploy if you want "MyPage.aspx" to be the default page that loads once your site is in production.


No you don't need, but you need to set your start page "MyPage.aspx as startup also on IIS.


As the above said , simply no. setting default page from IDE will automatically make it as default page. Only you have to do some settings in IIS that is from the properties of the web application, go to the tab where the default pages are displayed. Add the name of the page you have set from the VS IDE.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜