开发者

Integrate MVC 3 Razor with Asp.Net 4.0 in C#

开发者 https://www.devze.com 2023-04-10 02:12 出处:网络
I have developed one ASP.N开发者_高级运维ET (C#) web application in Framework 4. I want to integrate an external module which is developed in MVC 3 Razor.

I have developed one ASP.N开发者_高级运维ET (C#) web application in Framework 4. I want to integrate an external module which is developed in MVC 3 Razor. How can I integrate this MVC module with my existing ASP.NET web application? And also how to perform nevigation between them.

Both have master page.

please help me.

give me any sample example if possible.

thanks...


Merge web.config & global.ascx with mvc.

Add all folder in asp.net project

To redirect to Razor view from web page use

Response.RedirectToRoute("Default");

where Default Route is

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号