了解Asp.Net的WebForms或Asp.Net MVCNet、Asp、MVC、WebForms

2023-09-03 16:04:46 作者:秃驴给爷笑①個

这可能是一个傻瓜,但我找不到一个直接的答案。如果一个人即将开始学习web开发过的.Net框架,技术,他应该去?

It might be a dupe but I cannot find a straight answer. If a person is about to start learning web development over .Net framework, which technology should he go for ?

Asp.Net的WebForms Asp.Net MVC

同时考虑这三个方面

在今后的范围 复杂 功能

注意:已经做了一些的WinForms使用C#编程

Note: has done some WinForms programming using C#

感谢

推荐答案

由于大多数人会说,我相信,这完全取决于你想学习和发展要承担的风格是什么。如果你想了很多你的页面的标记的控制权,并打算使用了很多AJAX和CSS,那么MVC是一个更好的方法,是你失去了微软控件如GridView和其他拖放组件最大的权衡。 MVC是非常强大的,可扩展的框架,并学习它也将让你学会MVC模式(如果你曾经分散你的技能,以后到其他开发平台,这是有用)。

As most people will say I am sure, it very much depends what you want to learn and the style of development you wish to take on. If you want a lot of control of your page markup and intend to use a lot of AJAX and CSS, then MVC is a better approach, the biggest trade off is you lose the Microsoft controls such as the Gridview and other drag and drop components. MVC is very powerful and extensible framework and learning it will also allow you learn the MVC pattern (which is useful if you ever diversify your skills later on to other development platforms).

然而,如果你正在创建大量需要快速交付内部Web应用程序,那么Web表单无疑是一个更好的方式去,它是有据可查的,成熟和控件允许你免费打造强大的功能。虽然你会得到基本的模板来处理在MVC中的数据,它不是近作为一个快速构建应用程序的任何地方Web表单

However if you are creating lots internal web applications that need to be delivered quickly, then Webforms is certainly a better way to go, it's well documented and mature and the controls allow you build powerful functionality for free. Although you will get basic templates to manipulate data in MVC, it isn't anywhere near as fast a building applications in Webforms.

我个人的建议是学习MVC(和它的图案),因为它不会有大的依赖专有的微软组件,使你想想你的前端应用,它是与后端的交互。

My personal recommendation is to learn MVC (and it's pattern) as it does not have a big reliance proprietary Microsoft components and makes you think about your application on the front and it's interaction with the back end.

如果你想有一个大的MVC网站的一个很好的例子...你在它..计算器在ASP.NET MVC中运行。

If you want a good example of a big MVC site... you're on it.. stackoverflow run on ASP.NET MVC.

希望这会有所帮助,这是一个非常普遍的看法,并有很多事情需要两个参数。但是从个人的经验,我认为MVC会教你很多更多的可重复使用标准的Web技术,从长远来看。

Hope this helps, it is a very general opinion and there is a lot more to both arguments. However from personal experience I think MVC will teach you a lot more reusable standard web technologies in the long run.

乔恩

 
精彩推荐
图片推荐