ASP.NET MVC与Web From的使用时机?

ASP.NET MVC与Web From的使用时机?

http://www.dotblogs.com.tw/mis2000lab/archive/2009/08/10/mvc_or_webfrom.aspx

 

ASP.NET 4.0将会完整纳入 MVC,这几个英文单字相信又会吓倒不少初学者。

我会建议「先不要急,先了解自己的需求,然后再来考虑新技术的引进

 

在ASP.NET MVC Training Kit里面,就有一篇文章简单地提到
MVC 与 WebForm的使用时机。

 

所谓Web Form,就是我们常见的网页程序(即ASP.NET),
而Windows Form,就是用 VB/ C#写的Windows程序。

 

以下是我的翻译,我列出原文以免我翻译失误。
...................................................................................................................................


When should I use ASP.NET Web Forms vs. ASP.NET MVC?

ASP.NET Web Forms and ASP.NET MVC offer developers the choice to build Websolutions in different ways.

Developers should pick one over the other based on the needs of the projectand their personal preference.

 

You should use ASP.NET Web Forms when: 何时该用 ASP.NET Web From
‧ Creatinga website faster is more important to you than complete control over markup.
‧ Youlike the abstraction offered by controls.
‧ Youwant to avoid writing inline code.
‧ Youare not interested in pattern-based software development and are not familiar withthe MVC pattern.
‧ 
‧ 喜欢「快速开发网站」,更胜于完整控制「软件的构造(makeup)」。
‧ 爱用控件(Controls)提供的概念。
‧ 不爱撰写Inline-Code(批注:程序代码与html标签混在同一个档案内,甚至混合在同一行里面)。
‧ 对于以样式(pattern)作为开发软件基础,毫无兴趣。

 

You should use ASP.NET MVC when: 何时该用 ASP.NET MVC
‧ Completecontrol over markup is important to you and you are willing to put in the extraeffort.
‧ Youdon’t like the abstraction offered by controls.
‧ Youdon’t mind writing inline code.
‧ Youare interested in pattern-based software development and like the separation betweenlayers offered by the MVC pattern.
‧ 
‧ 想完整地控制「软件的构造(makeup)」,且愿意多付出一些心力。
‧ 不喜欢控件(Controls)的抽象概念。
‧ 不介意写Inline-Code(批注:程序代码与html标签混在同一个档案内,甚至混合在同一行里面)。
‧ 对于以样式(pattern)作为开发软件基础,感到兴趣。而且喜欢MVC将各种阶层予以区隔。

...................................................................................................................................

 

关于MVC的介绍,网络上有几篇文章很赞:

 

1.  Will针对MVC发表了很多文章 -- http://blog.miniasp.com/category/ASPNET-MVC.aspx

      如同Will前辈所言 --「 ASP.NET MVC 真的「没什么」,而「有什么」的是 MVC 核心概念、设计样式、对象导向技术、相关开发技巧、敏捷开发流程、,这些东西才是最核心可创造效益的部分。


2.  小朱 ASP.NETMVC 是什么?能吃吗? -- http://www.dotblogs.com.tw/regionbbs/archive/2009/04/30/what_is_asp.net_mvc.aspx

      小朱前辈说的这句话,应该让很多人吃下定心丸,不会得到信息焦虑症。

      他说「ASP.NET MVC 只是另一个设计 ASP.NET 应用程序的方法,它不会,也没有任何理由要取代现有的 ASP.NET Web Form 开发模式,两者是并行且不冲突的。

 

3. 建议各位下载ASP.NET MVC Training Kit
      里面有很多简报、文件、范例可以参考。下载网址:
      http://www.microsoft.com/downloads/details.aspx?FamilyID=1E0BE0B2-910A-4676-9F3A-41E4D9C0FC08&displaylang=en

 

 

底下的留言,有 WizardWu网友的两篇大作,

写得很棒!不看一定会搥心肝!

 

快速搞懂 ASP.NETMVC:

 http://www.cnblogs.com/WizardWu/archive/2009/04/18/1438809.html 

 http://www.cnblogs.com/WizardWu/archive/2009/03/01/1400672.html 

 

 

转载于:https://www.cnblogs.com/mis2000lab/archive/2010/10/28/asp_net_MVC_2009_08_10.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值