Reputation:
Currently am working in MVC project . And I have one aspx page for display application errors.
Now i want to attach the MVC project master-page(layout.cshtml
) to my aspx
(error)page .
Is it possible ? if possible then how can do ?
Upvotes: 1
Views: 226
Reputation: 38663
You can't directly have a Razor Layout with WebForms Views, or a WebForms Master with Razor Views. While the concepts are similar, layouts are not masters and the concepts aren't exactly interchangeable.
look Scott Hansleman blog . He had one idea .
http://www.hanselman.com/blog/MixingRazorViewsAndWebFormsMasterPagesWithASPNETMVC3.aspx
Upvotes: 1