Setting folder default page in aspnet

坚强是说给别人听的谎言 提交于 2019-12-30 17:24:30

问题


My question is really simple. I have a Web application with multiple sub-folders and there's no Default.aspx page in any of these.

How do I set the default page in each of these folders so users can type /folder instead of /folder/login.aspx?

Can this be done through the web.config file? Should I just rename the file in each folder to Default.aspx?

Thanks!


回答1:


There is a default document section for web.config, and you can even put a web.config in each folder, and inside that config just have the default document set.




回答2:


There's a Default Document icon in the IIS section of your websites configuration panel. Open that up and you can add login.aspx to the list.



来源:https://stackoverflow.com/questions/6768517/setting-folder-default-page-in-aspnet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!