ASP.NET Web窗体与ASP.NET MVC [英] ASP.NET Web Forms vs ASP.NET MVC

查看:103
本文介绍了ASP.NET Web窗体与ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个小型开发团队工作,目前使用WCF和ASP.NET Web Forms开发中小型应用程序。

我的任务是调查我们是否正在使用适合我们开发需求的最合适的技术。

我一直在研究MVC,我对这些功能印象非常深刻,特别是测试,剃须刀引擎以及它与Bootstrap集成的容易程度,但需要证明什么是正确的这将是我们开发方式的一个重大变化,所以有一些问题: -



1.人们如何找到从Web Forms迁移到MVC的过程?

2.平均花费多长时间才能精通MVC?

3.有没有人注意到开发申请所花费的时间有多大差异?



提前致谢

I work for a University in a small development team who currently develop small to medium nTier applications using WCF and ASP.NET Web Forms.
I have been tasked to look into the whether we are using the most appropriate technology for our development needs.
I have been investigating MVC and I have been very impressed with the features, especially testing, the razor engine and how easily it integrates with Bootstrap but need to justify what would be a major change to the way we develop so have a few questions:-

1. How have people found the migration from Web Forms to MVC?
2. On average how long has it taken to become proficient in MVC?
3. Has anyone noticed any difference in the time taken to develop an application?

Thanks in advance

推荐答案

试试这篇文章:



1) ASP.NET WebForms和ASP.NET MVC协调一致

2)ASP.NET Forms to ASP.NET MVC案例研究

3 )逐步学习MVC(模型视图控制器) 7天 - 第1天

4) ASP.NET WebForms和ASP.NET MVC之间的区别
Try this article :

1) ASP.NET WebForms and ASP.NET MVC in Harmony
2) ASP.NET Forms to ASP.NET MVC case study
3) Learn MVC (Model View Controller) step by step in 7 days – Day 1
4) Difference betweeen ASP.NET WebForms and ASP.NET MVC


MVC是迄今为止我最喜欢的ASP.NET开发框架。您还可以使用Web窗体或其待弃用的Web页面框架来开发应用程序。但是MVC为它们提供了支持,MVC能够将Web页面和/或Web表单组合起来。



你已经提到的一件事,Razor语法证明了这是构建应用程序的一个很好的框架。 MVC框架,就像简单软件的MVC框架模式一样,包含



MVC is so-far my favourite web development framework by ASP.NET. You can also develop the applications using Web Forms, or their to-be deprecated Web Pages framework. But MVC powers them both, MVC is capable of what Web Pages and/or Web Forms can do combined.

One thing that you've already mentioned, the Razor syntax is the proof that this is a great framework to build applications. MVC framework, is just like the simple software's MVC framework pattern, containing



  1. 模型 - 数据
  2. 查看 - 用于HTML页面
  3. 控制器 - 用于后端代码





有该框架的其他多个优点功能总是会超重其他Web开发框架。在我看来,您应该始终考虑使用ASP.NET MVC框架进行Web开发。



我从未做过Web Forms编程,因为我讨厌他们的语法;对任何人都没有冒犯< asp:Control> 这件事总是让我感到烦恼。这就是为什么我(从Web Pages框架)跳到MVC框架,相信我,我知道C#语言的基础知识和ASP.NET应用程序的基础知识(比我们这里的许多人知道的要少得多),但我在一个晚上就学会了MVC框架。这就是ASP.NET MVC框架的简单程度。它还以非常有条理的方式管理您的代码。您一定会喜欢用ASP.NET MVC框架编写的应用程序。这也将为您的团队节省时间。



如果你是这个框架的新手,想要学习它,我已经写了一篇文章。您可以阅读该文章并学习ASP.NET MVC框架。它解释了MVC的开发模式,然后使用一个真实的例子来构建ASP.NET应用程序。



使用真实世界的例子,为初学者和中级人员理解ASP.NET MVC [ ^ ]



There are other multiple good features of this framework that would always overweight other frameworks for web development. In my opinion, you should always consider using ASP.NET MVC framework for web development.

I have had never done Web Forms programming, because I hated their syntax; no offence to anyone. The <asp:Control> thing always irritated me. That is why I (from Web Pages framework) jumped on to MVC framework, trust me, I knew the basics of C# language and the basics of ASP.NET applications (pretty much a lot less that I knew than many of us here), but I learnt the MVC framework in just one night. That is how much simple this ASP.NET MVC framework is. It also manages your code in a very well organised way. You would love your application written in ASP.NET MVC framework. It would be a saving of time for your team too.

In case you're new to this framework and want to learn it, I have written an article for this. You can read that article and learn the ASP.NET MVC framework. It explains the MVC pattern of development, and then uses a real-world example to build ASP.NET application according.

Understanding ASP.NET MVC using real world example, for beginners and intermediate[^]


这篇关于ASP.NET Web窗体与ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆