混合的WebForms / ASP.NET MVC [英] Hybrid WebForms/ASP.NET MVC

查看:119
本文介绍了混合的WebForms / ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/7288840/asp-net-mvc-alongside-web-forms-in-the-same-web-app\">ASP.NET MVC一起在同一个web应用程序的Web窗体?

我还挺新的.NET应用程序,我有我的工作在Web窗体应用程序,我即将开始的新页面的开发,我试图让与ASP.NET MVC新的页面,但我不beeing能够使网页击中控制器。首先,我增加了库引用添加上在Global.asax,但不能确定的路线是缺少些什么,有人可以帮我吗?

I am kinda new to .NET applications, I have a web forms application that I am working on and I am about to start the development of new pages, I am trying to make the new pages with the ASP.NET MVC, but I am not beeing able to make the pages hit the controllers. First i added the library references added the routes on the global.asax but not sure what else is missing, can someone help me out?

THX。

推荐答案

我猜想你正试图从字里行间的添加 MVC网页到您现有的ASP.NET Web表单的web应用?

Reading between the lines I gather you are trying to add MVC pages to your existing ASP.NET Webforms Webapplication?

如果是这样的话,那么你可能需要一些MVC特定的配置。设置。最简单的方法是创建一个新的MVC的Web应用程序,然后合并的配置设置。

If that is the case then you probably need some MVC specific config. settings. Easiest way is to create a new MVC web app and then merge the config settings.

此外,如果你正在做的一个项目混合动力车我推荐给<一个href=\"http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx\">Scott在话题Hanselmann的帖子一读。

Furthermore if you are doing a hybrid project I'd recommend giving Scott Hanselmann's post on the topic a read.

这篇关于混合的WebForms / ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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