开发者

How to convert an existing ASP.NET project into MVC pattern?

I created a ASP.NET project which calls a DAL cl开发者_运维知识库ass I wrote, to retrieve data to display on the page, most of the heavy lifting is in the DAL class.

As you can see, it pretty straightforward, although I do have some minor validation code in my aspx page.

Question here is that: how can I convert this project into a MVC pattern?


Have a look at the NerdDinner tutorial, and understand the patterns first, before attempting to do a conversion.

There really isn't an automated way of doing it, AFAIK. There are too many moving parts.


If this is a large project you are converting it may pay to integrate MVC into your existing Web Application and converting bit by bit.

We're in the process of doing that and it seems to be working quite well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜