MVC or Web Forms? [closed]

蓝咒 提交于 2020-01-23 12:33:50

问题


I a general question. When i want to develop some new web project (not simple page-something bigger and quite complex) what technology should i choose- MVC or Web Forms?

I've tried to find it myself but there are many different opinions about that topic. Is there any general rule or methodology which can help me decide?


回答1:


No, there is no general rule. It's only a matter of preference. Someone likes MVC, someone likes webforms. Microsoft will support both equally.

Don't pick MVC vs Webforms based on the experience of someone else who says "THIS IS BETTER", because he's just plain wrong, but based on your instinct or how to describe it the best. You need to feel comfortable with the technology you're using, not struggle with it.




回答2:


Basically both have their pons and cons for an overview of how you can decide see this blog

http://blogs.microsoft.co.il/blogs/gilf/archive/2009/01/16/deciding-when-to-use-asp-net-mvc-framework.aspx

See these questions as well that already ask what you are looking for

When to use ASP.NET MVC vs. ASP.NET Web Forms?

Traditional ASP .NET Web Forms vs MVC



来源:https://stackoverflow.com/questions/10380986/mvc-or-web-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!