ASP.NET MVC 3, Razor-C#, and VB.NET WebForms - A Tale of Black Magic V

added by Matt_TCF
2/16/2012 9:36:25 AM

3 Kicks, 292 Views

What do you get when you mix a legacy VB.NET WebForms application, ASP.NET MVC, and Razor views that are written in C#? If you said “Pain!” you are quite right. But what you also get is the ability to leverage your existing investment in VB.NET WebForms while crafting new code in ASP.NET MVC Razory-C# goodness. In this series of posts, I’m going to tell you how you, too, can concoct a wicked brew that will enable you to do crazy things, such as creating Razor views in C# that utilize VB.NET WebForms master pages, or how you can render MVC action methods from within WebForms markup.


1 comments

dpeterson
2/16/2012 9:36:27 AM
Well, I'm glad I'm not in a position where I have to deal with something like this, but it's nice to know a solution exists. Thanks for sharing, and try not to go too crazy maintaining that thing.