且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.net中的启动页面出现问题

更新时间:2022-06-17 00:43:53

有两种方法可以做到这一点.如果您有权访问IIS,则告诉它使用您的文件名作为默认文件.打开您的IIS管理器.如果要将所有站点的默认操作设为默认操作,请右键单击默认网站",然后选择属性.然后单击文档"选项卡.单击添加..."并添加"Index.aspx".否则,仅对您的特定网站执行此操作.

另一种方法是将"Index.aspx"重新命名为"Default.aspx",因为默认情况下应在列表中.
There are a couple of ways to do this. If you have access to IIS tell it to use your file name as a default file. Open your IIS manager. If you want to make this action the default for all of your sites then right-click on the ''Default Web Site'' and select properties. Then click on the ''Documents'' tab. Click the ''Add...'' and add ''Index.aspx''. Otherwise only do this for your specific site.

Another way is to reanme ''Index.aspx'' as ''Default.aspx'' as this should be in the list by default.


this[^] might help you.


^ ]详细说明了数字人所说的话.
here[^] is in detail of what digital man has said.