Asp.net网站与MVC 3网络项目。 [英] Asp.net web site with MVC 3 web project.

查看:53
本文介绍了Asp.net网站与MVC 3网络项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



在这里,我试图将现有的asp.net网站与MVC3中新开发的模块结合起来,即另一个项目。

帮助我从Asp.net网页内部调用MVC3网页

任何类型的帮助或回复都将受到赞赏..

它的卡住时间!!!让我们解决..

解决方案

查看这篇文章

ASP.NET WebForms和ASP.NET MVC in Harmony [ ^ ]


< blockquote>有一个链接到你的MVC网站的网址与地图路线匹配



routes.MapRoute(

默认,//路线名称

{controller} / {action} / {id},//带参数的URL

new {controller =Home,action =Index ,id =} //参数默认值

);


Dear all,

Here I am trying to combine the already existing asp.net web site with the newly developed module in MVC3 i.e. another project.
Please help me to call the MVC3 web page from inside of Asp.net web page.
Any type of help or response will be appreciate..
Its time of stuck!!! Lets resolve..

解决方案

Check this article
ASP.NET WebForms and ASP.NET MVC in Harmony[^]


Have a link with the Url to your MVC site matching the map route

routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);


这篇关于Asp.net网站与MVC 3网络项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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