ASP.NET MVC 我应该先学习 webforms 吗? [英] ASP.NET MVC Should I bother learning webforms first?

查看:20
本文介绍了ASP.NET MVC 我应该先学习 webforms 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将涉足 ASP.NET Web 开发,并且我已经了解了一些使用 Visual Web Developer 的非常基础的知识以及一些 Web 窗体的实现.然而,我没有继续走 Web 窗体路径并掌握 VIEWSTATE 以及随之而来的所有丑陋之处,而是决定走 MVC 路线.

I'm about to foray into ASP.NET Web Development and I already know some of the very basics using Visual Web Developer and some of the implementations of Web Forms. However, instead of continuing to go down the Web Forms path and mastering VIEWSTATE and all of the ugliness that comes along with it, I've decided to go the MVC route.

此时,我在想,我是否应该继续学习 Web Forms 然后转向 MVC?还是可以在不了解Web Forms的情况下独立学习MVC?我最好的行动方案是什么?

At this point, I'm wondering, should I continue to learn Web Forms and then move over to MVC? Or can MVC be learned independently without knowing a thing about Web Forms? What's my best course of action?

推荐答案

不,甚至不要看 Web 表单.

No, don't even look at Web Forms.

MVC 的建模更接近于 HTTP 的实际工作方式,这使得使用客户端脚本更容易使用和构建当今的 Web 应用程序.结合 Web Forms 和 javascript 真的很痛苦.

MVC is modeled much closer to how HTTP actually works, which makes it much easier to work with and to build today's web applications with client side scripts. Combining Web Forms and javascript is really a pain.

MVC 也更好,因为它有助于使服务器端结构正确.也可以在 Web 表单上使用模型-视图-表示者(或控制器)分离,但必须将其隐藏在 Web 表单之上.

MVC is also much better in that it helps getting the server side structure right. It is possible to use a model-view-presenter (or controller) separation on Web Forms too, but it has to be ducked taped on top of Web Forms.

最后,在开始使用 MVC 时,您几乎不会用到任何 WebForms 知识.恰恰相反,我教过 MVC 的 WebForms 开发人员必须首先从 WebForms 中洗脑;-)

Finally, you will have nearly no use of any WebForms knowledge when starting with MVC. It's rather the other way around, the WebForms developers I've taught MVC have to be de-brain-washed from WebForms first ;-)

这篇关于ASP.NET MVC 我应该先学习 webforms 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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