ASP.NET MVC 是一个好的平台吗?
我的目标是尝试在 ASP.NET MVC 项目中使用 DevExpress Web 服务器控件(非常棒)(我在 'net 上读到的一些文章似乎表明两者可以很好地协同工作)。
我渴望使用 ASP.NET MVC 开始一个新项目,并且最近我阅读了很多有关 ASP.NET MVC 的文章,但我不确定是否应该在其中投资一个项目。我担心的是,它可能会像 LINQ to SQL 一样,由于微软不会提供更新,所以它基本上已经被淘汰了。
ASP.NET MVC 是投资于我的案例的可行解决方案吗?
I aim to try use DevExpress web server controls (which are awesome) in an ASP.NET MVC project (some articles I read on 'net seems to indicate the two can work well together).
I'm eager to start a new project using ASP.NET MVC, and I have been reading up a lot on ASP.NET MVC lately, but I'm not sure if I should invest a project in it. My concern is that it may turn out to be like LINQ to SQL, which is essentially been killed off since MS will not be providing updates.
Is ASP.NET MVC a viable solution to invest in my case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是的,ASP.NET MVC 或任何其他 MVC 框架绝对值得学习。 MVC 模式就是关注点分离,并帮助您保持代码整洁。
如果您太喜欢 Devexpress 控件,您可能会感到失望,因为 ASP.NET MVC 中没有服务器端控件。但如果你想学习Web的底层机制,HTML,Javascript,干净的代码,TDD ASP.NET MVC是一个不错的选择。
Yes definitely ASP.NET MVC or any other MVC framework is worth learning. MVC pattern is all about seperation of concerns and helps you to keep your code clean.
If you like Devexpress control too much you could be disappointed because there is no server side control in ASP.NET MVC. But if you want to learn Web's underlying mechanism,HTML, Javascript , clean code, TDD ASP.NET MVC is a good way to go.
先学习,后实验
Asp.net MVC 是一个用于构建 Web 应用程序的出色开发平台,因此绝对值得您花时间彻底学习它。
但我建议您首先学习 MVC 框架并用它构建至少一个半复杂的应用程序,然后开始尝试将 MVC 与 Web 表单控件混合。这是有可能的,但你认为你会得到多少,你可能会失去更多。所以我会有点不情愿,建议你不要匹配这些。至少在绿地项目上不是这样。
换句话说:如果您了解 Asp.net Web 表单,您是否会建议某人在其网页中大量使用动态创建的用户控件(如果他们刚刚学习 Asp.net Web 表单技术)?可能不会。或者在新建项目中将 Web 表单与 ASP 页面混合...
而是尝试寻找出色的 MVC 友好服务器扩展或客户端库,它们将帮助您创建丰富的 Web 应用程序,例如 ExtJS (我不在 ExtJS llc 工作,但我过去在一个项目中使用过该库,并且非常喜欢)。使用这样的东西,您不会失去 MVC 的东西,并获得良好的用户体验和丰富的功能。
Learn first, experiment later
Asp.net MVC is a great development platform for building web applications, so it's definitely worth your time to learn it through and through.
But I suggest you first learn MVC framework and build at least one semi complex app with it and then start experimenting with mixing MVC with web forms controls. It is possible but as much you think you will gain you'll probably loose more. So I would be a bit reluctant and advise you not to match these. At least not on a Greenfield project.
In other words: presumably knowing Asp.net web forms would you suggest someone to heavy use dynamicly created user controls in their web pages if they're just about to learn the technology of Asp.net web forms? Probably not. Or mixing web forms with ASP pages on a greenfield project...
Instead try finding great either MVC-friendly server extensions or client-side libraries that will help you create rich web apps like ExtJS (I don't work for ExtJS llc, but I used the lib on a project in the past and liked it a lot). Using something like this you won't loose stuff from MVC and gain great user experience and rich functionality.
看到您如何在此网站上提出问题,我会说是!
Seeing how you're asking the question on this site, I'd say YES!
DevExpress 有一堆 MVC 专用控件,它们使用 Ajax 通过回调从服务器获取数据。您可以在此处查看控件的演示:
http://mvc.devexpress.com。
我不确定您是否可以使用网络表单控件,我的理解是您不能。
另外,关于 LinqToSql,您不必使用它。我使用 NHibernate 作为数据层,它与 MVC 配合得很好。
我使用 asp.net 和 Web 表单超过 5 年,并且使用 asp.net 的 DevExpress 控件至少 1 年,但现在我非常喜欢 MVC,以至于我想我不想再回到 Web 表单了很快。
希望这有帮助。
DevExpress has a bunch of MVC specialized controls, that use Ajax to get data from the server via callbacks. You can see demos of the controls here:
http://mvc.devexpress.com.
I am not sure if you can use the web forms controls, my understanding is that you can't.
Also, regarding LinqToSql, you don't have to use that. I am using NHibernate for the data layer and it works very nice with MVC.
I worked with asp.net and web forms for more than 5 years and at least 1 year with the DevExpress controls for asp.net, but now I love MVC so much that I think I don't want to go back to the web forms anytime soon.
Hope this helped.