asp.net - Visual Studio 2013 Web 表单和设计 View 在 Visual Studio 2019 中等效吗?

标签 asp.net visual-studio webforms visual-studio-2019

我正在关注一个 ASP.NET 类(class)系列,其中讲师使用 Visual Studio 2013,但我无法弄清楚他使用的设置在 2019 年的等效设置是什么。他创建了一个新的 ASP.NET Web 应用程序,然后选择“空”模板,但在创建我的模板时,我看不到其他选项,特别是 Web 表单框。

网络表单 ( /image/hy2x3.png )

我尝试做同样的事情,但是当他继续时,他能够“添加网络表单”到项目中。他创建了一个扩展名为 .aspx 的 Web 表单。

网络表单 ( /image/2W9te.png )

他还可以进入设计 View 模式,但我看不到。我可以右键单击 html 或 htmlcs 文件并使用 Web 表单编辑器选项打开它们,但此时工具箱中的所有 HTML 项目都会消失(指针、按钮、文本区域、输入等)。我也尝试选择 ASP.NET Web 应用程序模板,但它对我的问题没有任何影响。

设计模式 ( /image/AYYYF.png )

或者在本类(class)中使用 VS 2013 会更好吗?

最佳答案

ASP.NET Web Forms是一项古老的技术:

Web Forms was included in the original .NET Framework 1.0 release in 2002, as the first programming model available in ASP.NET. Unlike newer ASP.NET components, Web Forms is not supported by ASP.NET Core.

如果您导航至 ASP.Net Web Forms page ,微软告诉你:

Consider Razor Pages instead of Web Forms
Razor Pages is a more modern alternative for building web apps using HTML, CSS, JavaScript, and C#. Razor Pages can run on .NET Core - a high performance, cross-platform and open-source version of .NET that runs on Linux, macOS, and Windows.

如果您必须学习 ASP.NET Web 表单,它在 Visual Studio 2019 中受支持:
Web Forms in Visual Studio 2019

关于asp.net - Visual Studio 2013 Web 表单和设计 View 在 Visual Studio 2019 中等效吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56865959/

相关文章:

javascript - 在 asp.net webforms 中引用 javascript 文件

c# - Visual Studio 2017 快速操作灯泡图标与新 Screwdriver 图标

c++ - 带有 qt 的 Visual Studio 无法编译 gui 类

c# - 如何将数据插入sql server数据库

c# - C# .NET 上的 OAuth 与 Twitter

c# - "ambigous reference"上的错误两次指向同一方法

c# - 如何在不刷新页面的情况下运行我的代码?

asp.net-mvc - ASP.NET Web 表单作为 ASP.NET MVC

javascript - 最后点击的单选按钮 ID

git - 排除 Git 中受控文件的更改