【引】Difference between Asp.Net WebForm and Asp.Net MVC
2014-03-14 10:12
471 查看
Asp.net framework is a part of .net platform for building, deploying and running web applications. Now, we can develop a web application by using Asp.Net Web Form and Asp.Net MVC. In this article, I am going to expose the main difference between Asp.Net Web Form and Asp.Net MVC.
Asp.Net Web Forms | Asp.Net MVC |
Asp.Net Web Form follow a traditional event driven development model. | Asp.Net MVC is a lightweight and follow MVC (Model, View, Controller) pattern based development model. |
Asp.Net Web Form has server controls. | Asp.Net MVC has html helpers. |
Asp.Net Web Form has state management (like as view state, session) techniques. | Asp.Net MVC has no automatic state management techniques. |
Asp.Net Web Form has file-based URLs means file name exist in the URLs must have its physically existence. | Asp.Net MVC has route-based URLs means URLs are divided into controllers and actions and moreover it is based on controller not on physical file. |
Asp.Net Web Form follows Web Forms Syntax | Asp.Net MVC follow customizable syntax (Razor as default) |
In Asp.Net Web Form, Web Forms(ASPX) i.e. views are tightly coupled to Code behind(ASPX.CS) i.e. logic. | In Asp.Net MVC, Views and logic are kept separately. |
Asp.Net Web Form has Master Pages for consistent look and feels. | Asp.Net MVC has Layouts for consistent look and feels. |
Asp.Net Web Form has User Controls for code re-usability. | Asp.Net MVC has Partial Views for code re-usability. |
Asp.Net Web Form has built-in data controls and best for rapid development with powerful data access. | Asp.Net MVC is lightweight, provide full control over markup and support many features that allow fast & agile development. Hence it is best for developing interactive web application with latest web standards. |
Asp.Net Web Form is not Open Source. | Asp.Net Web MVC is an Open Source. |
相关文章推荐
- ASP.NET WebForm and ASP.NET MVC
- Choosing between ASP.NET MVC and ASP.NET Webforms
- Asp.Net MVC framework And Asp.Net Webform
- ASP.NET WebForm / MVC 源码分析
- Differences between ASP and ASP .NET
- asp.net mvc asp.net webform extjs jquery这些东西应该如何选择
- ASP.NET 之 WebForm VS MVC
- 【小技巧】自定义asp.net mvc的WebFormViewEngine修改默认的目录结构
- Asp.net MVC 4 and .Net 4.5 Bundling and Minification(Web Site Optimization)
- ASP.NET MVC with Entity Framework and CSS一书翻译系列文章之第一章:创建基本的MVC Web站点
- EF Database First with ASP.NET MVC: Creating the Web Application and Data Models开发遇到问题的解决办法
- ASP.NET MVC vs webform
- 【小技巧】自定义asp.net mvc的WebFormViewEngine修改默认的目录结构
- Creating a Clean, Minimal-Footprint ASP.NET WebAPI Project with VS 2012 and ASP.NET MVC 4
- 【小技巧】自定义asp.net mvc的WebFormViewEngine修改默认的目录结构
- Mixing ASP.NET Webforms and ASP.NET MVC
- asp.net webform/mvc导出Excel通用代码
- ASP.NET MVC Preview 5 and Form Posting Scenarios
- Difference Between ASP.NET Server Controls,HTML Server Controls and HTML Intrinsic Controls
- Plug-In Hybrids: ASP.NET WebForms and ASP.MVC and ASP.NET Dynamic Data Side By Side