在ASPNET设置文件夹的默认页 [英] Setting folder default page in aspnet
问题描述
我的问题是非常简单的。我有多个子文件夹的Web应用程序,有没有Default.aspx页面中的任何这些。
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.
如何设置默认页面的每个文件夹中,以便用户可以键入/文件夹而不是/folder/login.aspx?
How do I set the default page in each of these folders so users can type /folder instead of /folder/login.aspx?
可以这样通过web.config文件中做了什么?
如果我只是在文件重命名每个文件夹中的Default.aspx?
Can this be done through the web.config file? Should I just rename the file in each folder to Default.aspx?
谢谢!
推荐答案
有一个的>默认文档部分,你甚至可以把一个web.config每个文件夹中,并且配置里面只是有默认的文档集。
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.
这篇关于在ASPNET设置文件夹的默认页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!