views:

118

answers:

2

Hi guys

Just wondering if anyone know if in general you can use the MVC UI helpers in a classic ASP.Net project. Obviously you would have to be mindful not to you the form helper, etc. But I have some helpers that I have built for MVC and wondering if there is anyway I can use them as is in my older project.

I know I would need to reference the MVC dll's etc, but I'm trying to think is there any traps with doing this (i.e. the page life-cycle screwing things up) or any major reasons why you shouldn't do this... My thinking is that asp.net controls work in asp.net (with some restrictions), so does it work the other way round.

Cheers Anthony

+1  A: 

Scott Hanselman's Plug-in Hybrids article provides a pretty good treatment of the process of integrating ASP.NET and ASP.NET MVC pages side-by-side.

Robert Harvey
A: 

The last chapter of Pro ASP.NET MVC Framework details using MVC and WebForms side by side.

Off the top of my head, I can tell you that you must be using the Web Application project type, not Web Site.

Josh Kodroff