网页如何成为创建 ASP.Net Web 应用程序的编程模型
ASP.NET Web 窗体是 ASP.NET Web 应用程序框架的一部分。它是可用于创建 ASP.NET Web 应用程序的三种不同编程模型之一,其他模型是 ASP.NET MVC 和 ASP.NET 网页。
我已在 asp.net 网站中阅读了以上几行。我的理解是网页可能指的是从服务器检索的html文档,而Web表单是ASP.NET应用程序中用于生成的东西一个HTML文档(以动态方式)
但是asp.net网站所说的Web表单的定义让我感到困惑。好的,我可以理解 MVC 是一种用于创建 ASP.NET Web 应用程序的编程模型。
什么是 Web 窗体?以及什么是网页? 网页如何成为创建 ASP.Net Web 应用程序的编程模型
ASP.NET Web Forms is a part of the ASP.NET web application framework. It is one of the three different programming models you can use to create ASP.NET web applications, the others being ASP.NET MVC and ASP.NET Web Pages.
I have read above lines in asp.net site. My understanding is A web page may refer to a html document retrieved from server and A Web Form is a thing in ASP.NET Application used to generate a HTML document(in dynamic manner)
But definition of web forms said by asp.net site confused me. OK I can understand MVC is a programming model used to create ASP.NET Web application.
What is a Web Form ? and What is a Web page ?
How Web page is a programming model to create ASP.Net web application
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ASP.Net 是 Microsoft 用于构建动态网站的技术堆栈。
在该堆栈中,它们支持 3 种不同的生成网页的方式。
Web 窗体是最古老的 - 自 ASP.Net 诞生以来它就已存在。它与 Visual Studio 紧密耦合,并具有“拖放”页面构建功能。大多数关心 HTML 构建方式的人不喜欢 Web 表单,因为“拖放”组件可能会导致生成语义有效的 HTML 变得困难 - 尽管最新版本要好得多。
ASP.Net MVC 是 Web 窗体的替代方案 - 并且它是一个相当不错的 MVC 框架。
网页是另一种选择;它更像是一个脚本/模板解决方案,类似于 PHP。它背后没有适当框架的开销/安全网(如 MVC),并且它使用 RAZOR 来支持视图引擎。
对于任何重要的新项目,ASP.Net MVC 都是行业标准。
ASP.Net is Microsoft's technology stack for building dynamic web sites.
Within that stack, they support 3 different ways of generating a web page.
Web Forms is the oldest - it's been around since ASP.Net was born. It's tightly coupled into Visual Studio, and has "drag and drop" page building. Most people who care about how their HTML is constructed dislike Web Forms, because the "drag and drop" components can make it hard to generate semantic, valid HTML - though the latest version is a lot better.
ASP.Net MVC is an alternative to Web Forms - and it's a pretty decent MVC framework.
Web Pages is another alternative; it's more of a scripting/templating solution, similar to PHP. It doesn't have the overhead/safetynet of a proper framework behind it (like MVC), and it uses RAZOR to support the view engine.
For any non-trivial new projects, ASP.Net MVC is the industry standard.