asp.net-mvc 和 webforms 共存 [英] asp.net-mvc and webforms co-existing

查看:15
本文介绍了asp.net-mvc 和 webforms 共存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们这里有一个面向客户端的大型 Web 应用程序.我们最近重新编写了在线购买体验以使其更快.我没有采纳我使用 ASP.Net-MVC 的建议,因为我是这里唯一知道它的人.

We have a massive client facing web application here. We recently re-wrote the buy online experiance to make it quicker. My suggestion of using ASP.Net-MVC was not taken on board as I'm kinda the only one here that knows about it.

现在我们将着手重新开发网站的另一部分,但我再次无法使用 MVC,因为无论您问他们多少次,这里都没有人费心研究该框架.

Now we are about to embark on redeveloping another section of the site and again I can't use MVC because no one here, no matter how many times you ask them, has bothered to research the framework.

与其被冷落,我真的很想重新编写 MVC 框架中的部分.

Rather than be left behind and out in the cold again, I'd really like to re-write the sections in the MVC framework.

如果我可以混合使用 WebForms 和 MVC,我想我可以摆脱它,但似乎很少有关于该技术的文献.

I think I could get away with it if I could mix WebForms and MVC but there seems to be little literature on the technique.

我需要能够从 WebForm 页面无缝转到 MVC 页面,反之亦然.

I'd need to be able to go to MVC pages from WebForm pages and vice-versa seamlessly.

我读过这篇文章这很棒,但还有更多关于吗?

Ive read this article and it's great but are there any more about?

有没有人真的这样做过并成功部署过它?我想听听任何战争故事、技巧、技巧、窍门和陷阱.

Has anyone actually done this and deployed it successfuly? I'd like to hear any war stories, techniques, tips, tricks and gotchas.

我正在寻找尽可能多的文献,以便在项目开始时我可以向当权者提出令人信服的案例.

I'm looking for as much literature as I can get my hands on so that when the project kicks off I can present a convincing case to the powers that be.

提前致谢.

推荐答案

第 12 章 专业 ASP.NET MVC 1.0 被称为两全其美:Web 窗体和 MVC 结合.它完全涵盖了您提出的问题.好消息是它没有太多.这本书由团队摇滚明星 Rob Conery、Scott Hanselman、Phil Haack 和 Scott Guthrie 撰写.我发现它在学习 ASP.NET MVC 时很有帮助.

Chapter 12 in Professional ASP.NET MVC 1.0 is called Best of Both Worlds: Web Forms and MVC Together. It covers exactly the issue you raise. The good news is that there is not a lot to it. The book was written by team rock-stars Rob Conery, Scott Hanselman, Phil Haack, and Scott Guthrie. I found it instrumental when learning ASP.NET MVC.

另外,这里有一篇名为整合的文章ASP.Net MVC 到一个现有的 ASP.Net Web 应用程序,讨论它.

Also, here's an article called Integrating ASP.Net MVC Into An Existing ASP.Net Web Application that discusses it.

更新:事实证明您可以下载两全其美一章免费.这是一个未更正的草稿 - 不是最终的书章",但可能值得一看.

UPDATE: Turns out that you can download a copy of the draft Best of Both Worlds chapter for free. This is an "Uncorrected Draft - Not Final Book Chapter" but might be worth checking out.

这篇关于asp.net-mvc 和 webforms 共存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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