如何在ASP.NET网站(IIS)中定义起始页 [英] How can I define a start page in my ASP.NET website (IIS)

查看:81
本文介绍了如何在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)

这篇关于如何在ASP.NET网站(IIS)中定义起始页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆