开发者

Setting folder default page in aspnet

开发者 https://www.devze.com 2023-03-21 15:53 出处:网络
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.

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/l开发者_如何学JAVAogin.aspx?

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

Thanks!


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.


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.

0

精彩评论

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

关注公众号