如何在ASP.NET网站(IIS)中定义起始页

问题描述:

我在Visual Studio中创建了一个网站,并且正在使用IIS.但是,我希望它显示如下:localhost/app,而不是localhost/app/index.aspx.我已经在应用程序中将index.aspx定义为我的起始页,但是它没有用.

I create a website in Visual Studio and I'm using IIS. But, I'd like that it show like this: localhost/app, not localhost/app/index.aspx. I've defined index.aspx as my start page in my application, but it didn't work.

在IIS管理器中,转到默认文档并添加默认页面.(例如index.aspx)

In IIS Manager, Go to default document and Add your default page. (ex. index.aspx)