如何在asp.net中设置网站的起始页面 [英] How to set start page of website in asp.net

查看:144
本文介绍了如何在asp.net中设置网站的起始页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;

我有一个关于在asp.net中设置起始页面的问题。

我的所有页面都在页面文件夹中,
所以如何在此文件夹中设置默认页面作为起始页?



谢谢。

Hi every body;
I had a question about setting start page in asp.net.
All of my pages are in the folder of pages,
so how can i set a default page in this folder as a start page?

Thanks.

推荐答案

在Visual Studio中打开网站,右键单击页面,然后单击设置为起始页面选项。

如果您在IIS上托管,则只需添加默认文档网站并提及名称,与页面名称相同。
Open website in Visual Studio, right click on the Page, then click on "Set as start page" option.
If you hosting on IIS, then just add a Default Document for the website and mention the name, same as the page name.


这篇关于如何在asp.net中设置网站的起始页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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