Prachi Pant
Prachi Pant

Reputation: 43

Razor views in ASP.NET Webforms application

I am trying to convert my Asp.net Webforms application into an Asp.net MVC one. I wanted to know if i could have Razor views(.cshtml) and Aspx views(.aspx) coexist in the same application.If yes,then how?If no,then is it ok if i use MVC with aspx pages?

Upvotes: 0

Views: 1135

Answers (1)

samar
samar

Reputation: 5201

Yes you can have razor views and aspx views in the same project. Check out the following links, they will guide you in the right direction.

http://weblogs.asp.net/gunnarpeipman/archive/2010/07/29/asp-net-mvc-3-using-multiple-view-engines-in-same-project.aspx

http://www.hanselman.com/blog/MixingRazorViewsAndWebFormsMasterPagesWithASPNETMVC3.aspx

Hope this helps.

Upvotes: 2

Related Questions