如何从webform.aspx页打开MVC 4视图页? [英] How to open MVC 4 view page from webform.aspx page?

查看:88
本文介绍了如何从webform.aspx页打开MVC 4视图页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我正在寻找这样的东西,

basically i am looking for something like this ,

我得到了webform.aspx页面并在那里有按钮,如果我单击它,则需要显示MVC视图页面

i got webform.aspx page and have button there, if i click on it i need to show MVC view page

想法是我想要带有webform和mvc的应用程序!

idea is i want app with webform and mvc !

我正在尝试的是: http://www.packtpub.com/article/mixing-asp.net-webforms-and-asp.net-mvc

但是在这里,我对Webconfig设置感到困惑

but here i am confused about webconfig settings

请帮助我完成它,

谢谢

推荐答案

Scott Hanselman有很好的指南将MVC与Web Form应用程序集成,它应该带您完成所有步骤,简而言之:

Scott Hanselman has a good guide on integrating MVC with a Web Form App, it should take you through the steps, here it is in a nutshell:

  • 运行升级向导(打开Visual Studio2008 Web应用程序 在Visual Studio 2010中)
  • 创建默认的ASP.NET MVC应用程序以供参考(稍后将其丢弃)
  • 使用差异工具(例如超越比较)将ASP.NET MVC部分中的新web.config条目集成到升级的ASP.NET WebForms应用程序
  • Run the Upgrade Wizard (open the Visual Studio2008 Web Application in Visual Studio 2010)
  • Create a default ASP.NET MVC application for reference (you'll throw it away later)
  • Use a differencing tool like Beyond Compare to integrate the new web.config entries from the ASP.NET MVC sections into the upgraded ASP.NET WebForms application

这篇关于如何从webform.aspx页打开MVC 4视图页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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