ASP.NET MVC 适合活动票务网站吗?
下午好,
我正在重建最初使用 ASP.NET 3.5 WebForms 开发的活动票务网站,并考虑使用 ASP.NET MVC2 来重建解决方案。我喜欢友好 URL 的想法,因为当前站点对于每个指定事件都有很长的查询字符串 URL。从关注点分离的角度来看,MVC2 也很有吸引力。对我来说,最大的未知数是 MVC2 是否会处理对 3 个独立 Web 服务(SOAP 和 REST)的调用来获取门票可用性?也就是说,控制器功能是否允许使用此类 Web 服务?最后,MVC3 将于 1 月份发布 RTM。我是最好等待 MVC3,还是可以在 MVC2 中启动项目并稍后移植?
感谢您的所有建议和见解。
Good Afternoon,
I'm rebuilding an event ticketing site originally developed using ASP.NET 3.5 WebForms and am considering using ASP.NET MVC2 for the rebuilt solution. I like the idea of friendly URLs as the current site has very long query string URLs for each specified event. MVC2 also appeals from a separation of concerns point of view as well. The biggest unknown for me is will MVC2 handle calls to 3 separate web services (SOAP and REST) to get ticket availability? That is, does the controller functionality permit use of such web services? Finally, MVC3 is due to RTM in January. Am I better off waiting for MVC3, or can I start the project in MVC2 and port it later?
Thanks for all your advice and insight.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MVC 可以像 ASP.NET 表单一样处理任何 HTTP 请求。事实上,您应该考虑使用 WCF 来处理 SOAP 查询。是的,您当然可以使用 MVC 轻松创建 REST API。
最好现在就开始使用 ASP.NET MVC 3 RC2。它非常稳定而且很好。这将最大限度地减少迁移工作。欢迎来到MVC快乐世界!
MVC can handle any HTTP request as ASP.NET forms does. Indeed you should consider to use WCF for handling SOAP queries. And yes, sure you can easely create REST API with MVC.
It is better to start now, with ASP.NET MVC 3 RC2. It is very stable and nice. This will minimize migration work. Welcome to MVC happy world!
该控制器将允许您运行几乎任何您想要的代码。
我刚刚开始在一个大项目中使用 MVC,结果很好。我们选择了 MVC 3,它的边缘有点棘手,但它似乎有很多不错的改进。我非常高兴使用 MVC 而不是 Web 表单。对我来说,它似乎很顺利,而不是与网络的工作方式发生冲突。
The controller will let you run pretty much any code you want.
I just started using MVC in a big project and it's turning out well. We went with MVC 3 and it's been a little tricky living on the edge, but it seems to have a lot of nice improvements. I'm extremely happy to be using MVC instead of Web Forms. To me, it seems to flow smoothly instead of fighting with the way the web works.