当前位置: 动力学知识库 > 问答 > 编程问答 >

.net - Using ASP.Net MVC UI Helpers in a classic ASP.Net project

问题描述:

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

网友答案:

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.

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: