如何选择ASP.NET MVC 还是 ASP.NET WEBFORM
来源:互联网 发布:mysql monthsbetween 编辑:程序博客网 时间:2024/06/05 02:37
1. Are you considering test-driven development (TDD)?
TDD enables you to write tests for an application first, after which the
application logic is developed. An ASP.NET Webforms application uses only
one class to display output and handle user input. Automated testing of this
class is complex as you are required to load the full ASP.NET stack into a
separate process (for example, in IIS). The MVC framework allows the testing
of each component separately, without requiring the full ASP.NET stack. For
example, you can test your model separately from your controller without
requiring a view. If you are considering TDD, the ASP.NET MVC framework
will be the better choice.
2. Is there a need for fine control over HTML markup?
ASP.NET Webforms automatically inserts hidden HTML markup, IDs,
JavaScript, and so on, into your page's HTML output because of its
event‑driven architecture and its use of ViewState. The ASP.NET MVC
framework allows for 100% control over the HTML output. If you require full
control over your HTML markup, the ASP.NET MVC framework will be the
better choice.
3. Is the application heavily data-driven?
If you are developing an application that is heavily data-driven and is using
grids or a lot of master-detail editing of data, ASP.NET Webforms may
be the better choice as it provides a lot of controls that will aid you in the
development of these kind of applications. Of course, you can use the
ASP.NET MVC framework for these tasks too, but you will be required to
write more code to achieve the same goal.
4. Is there a need for a Winforms-like development approach?
Does your development team write Winforms code? Is there a need for an
event-driven programming approach? In these cases, consider ASP.NET
Webforms in favor of ASP.NET MVC.
5. Is there a need for a rapid application development (RAD)
development approach?
Does your client expect a quick prototype of an application? Is the use of
drag-and-drop development using pre-created web controls required? If so,
consider ASP.NET Webforms in favor of ASP.NET MVC.
- 如何选择ASP.NET MVC 还是 ASP.NET WEBFORM
- 新项目选择asp.net webform还是asp.net mvc?
- asp.net mvc asp.net webform extjs jquery这些东西应该如何选择
- ASP.NET WebForm and ASP.NET MVC
- ASP.NET MVC vs webform
- Asp.Net WebForm vs MVC
- asp.net编程模式:WebForm、MVP还是MVC?
- ASP.NET MVC与WebForm区别
- 正确认识WebForm与Asp.NET MVC (转)
- 正确认识WebForm与Asp.NET MVC
- ASP.NET MVC与WebForm区别
- ASP.NET MVC 项目中使用 WebForm
- ASP.NET MVC与WebForm区别
- ASP.NET MVC与WebForm区别
- ASP.NET MVC与WebForm的区别
- 正确认识WebForm与Asp.NET MVC
- ASP.NET 之 WebForm VS MVC
- 【ASP.NET】Webform与MVC开发比较
- Android Intent调用方法总结
- 为什么会出现ASP.NET平台下的MVC框架?
- DOM4j创建和输出xml
- 函数指针 (*(void(*)())0)() 解析
- Linux下的常用shell命令,文本编辑器vi和C语言编译、调试工具gcc、gdb的使用心得
- 如何选择ASP.NET MVC 还是 ASP.NET WEBFORM
- iphone 与 ipad 程序图标
- IIS7.5(经典/集成),IIS6,asp.net 4.0下配置Url映射(asp.net mvc)
- iphone openURL 运行Maps,SMS,Browser,Phone甚至其他的应用程序
- LSB最低有效位 写隐技术
- usaco-zero sum
- linux应用程序管理
- iphone加密算法AES
- 2.腾讯微博Android客户端开发——Parameter类和SyncHttp类编写