• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Comparing ASP.NET MVC and ASP.NET

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Comparing ASP.NET MVC and ASP.NET

 

You should know that the ASP.NET MVC framework is not a replacement for ASP.NET Webforms—it's an alternative that you can choose if it is well-suited for a specific situation. Make sure that you weigh and compare the advantages of each solution prior to picking a specific direction.

The ASP.NET MVC framework offers the following advantages:

1. Complexity of application logic is made easier to manage because of the separation of an application into model, view, and controller.
2. It allows for easier parallel development; each developer can work on a separate component of the MVC pattern.
3. It provides good support for TDD, mocking, and unit testing frameworks. TDD enables you to write tests for an application first, after which the application logic is developed.
4. It does not use ViewState or server-based forms, which allows you to have full control over the application's behavior and HTML markup.
5. It uses RESTful interfaces for URLs, which is better for SEO (Search Engine Optimization). REST is short for REpresentational State Transfer—the concept of using URLs as the link to a resource, which can be a controller action method, rather than to physical files on the web server.
6. A typical page size is small, because no unnecessary data is transferred in the form of hidden ViewState data.
7. It integrates easily with client-side JavaScript frameworks such as jQuery or ExtJS.

 

ASP.NET Webforms offers the following advantages:

1. It offers an event model over HTTP that is familiar to any developer. This event model also benefits the creation of business web applications.
2. It provides a lot of controls that are familiar to any developer—data components such as data grids and lists, validation controls, and so on.
These components are highly integrated in the development environment.
3. There are numerous third-party control vendors that can deliver almost any possible control.
4. Being familiar to developers allows ASP.NET Webforms to facilitate rapid application development.
5. Functionality is concentrated per page. It uses ViewState and server-based forms, which makes state management easier.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ASP.NET2.0实现依赖Oracle的缓存策略发布时间:2022-07-10
下一篇:
ASP.NET(C#)经典采集代码发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap