如何将默认Default.aspx添加到ASP.NET Web应用程序项目中?
问题描述:
我正在使用Visual Studio2015.
I am working with Visual Studio 2015.
我创建了一个新的 ASP.NET Web应用程序项目.然后进入 选择模板 的屏幕.我选择了空.
I created a new ASP.NET Web Application project. Then get a screen to Select a template. I selected Empty.
创建名为 WebApplication1 的项目.它有2个文件
The Project named WebApplication1 is created. It has 2 files
-
packages.config
-
Web.config
但是它没有 Default.aspx
.我记得以前用来自动创建 Default.aspx
的Visual Studio的较早版本.那么我该如何添加呢?
But it does not have Default.aspx
. I remember older version of Visual Studio used to create Default.aspx
automatically. So how can I add it?
答
请遵循以下简单步骤:
- 右键单击您的项目
- 点击新建
- 选择Web表单
- 将Default.aspx写入名称