문제

그렇다면 언제? 그리고 현재 프로젝트를 마이그레이션하는 데 필요한 프로세스가 얼마나 많은 시간을 할 것이라고 생각하십니까?

도움이 되었습니까?

해결책

나는 지금 몇 달 동안 그것을 사용해 왔습니다. 나는 MVC를 절대적으로 좋아합니다. 가용 시간에 따라 기존 프로젝트를 변환하는 것은 현실적이지 않을 수 있습니다. 내가 알다시피, 웹 양식은 이전 VB 군중의 Windows Form 개발을 시뮬레이션합니다. MVC는 그렇지 않은 척하지 않지만 HTTP 프로세스를 더 자세히 따릅니다.

내가 MVC에서 볼 수있는 몇 가지 플러스

1) 단위 테스트로 테스트 할 수 있습니다

2) HTML에 대한 직접 제어. 우리는 웹 사이트를 만들고 모든 HTML을 제어 할 수 없다는 것을 어떻게 받아들입니까?

3) 뷰 스테이트 수하물 없음

4) 시간 렌더링을 낭비 할 제어 트리가 없습니다

5) 양식 게시물에서 모달의 자동 바인딩

6) 다소 섹시 할 수 있습니다

그리고 몇 가지 단점

1) 더 이상 웹 컨트롤이 없으며 (많은 부유 한 타사 컨트롤이 손실됩니다)

2) 개발이 느리게 진행됩니다

3) 큰 학습 곡선

4) 여전히 베타 (CTP 곧 CTP)

다른 팁

ASP.NET MVC WebForms를 대체하기위한 것이 아닙니다. 그것들은 다른 기술이며 다른 목적을 위해 설계되었습니다.

각 기술의 장단점을 놓치기 때문에 하나만 사용하고 다른 하나만 사용하지 않을 것이라고 말하는 담요 진술을하는 것은 매우 좁은 마음의 접근법입니다.

Microsoft는 앞으로 두 기술 모두에 대해 노력하고 있으며 Webforms 4.0에는 몇 가지 달콤한 새로운 기능이 있습니다.

나는 WebForms와 Asp.net MVC를 사용하지만 현재 프로젝트의 요구를보고 현재 구현에 대한 올바른 결정

예, 새로운 프로젝트의 경우. 그러나 현재 생산 소프트웨어는 아닙니다.

그렇습니다. 가능한 한 순서대로.

MVC는 애자일 개발을위한 모범 사례의 세계로 .NET을 열어줍니다. 특히 우려의 분리 및 커플 링/응집력에 대한 우려를 다룹니다. 또한 공급 업체 별 참조 또는 구성 요소에 대한 의존성을 만들지 않고도 포트 가능한 소프트웨어를 작성할 수 있습니다.

의심 할 여지없이 WebForms의 후임자입니다, WPF와 함께, 당신이 읽을 수있는 PR에 관계없이.

Wikipedia 항목 Microsoft의 MVC를 위해 업데이트되기 전에도 분명합니다.

ASP.NET MVC를 웹 양식보다 선호한다고 가정하면 활성 개발/유지 관리에있는 시스템의 가치가 있습니다.

그들은 나란히 공존 할 수 있으므로 응용 프로그램의 일부를 마이그레이션하고 (새 것 또는 선택된 오래된 것)가 어떻게 작동하는지 볼 수 있습니다. 그것이 성공한다면 계속 가십시오.

그러나 "전부 또는 아무것도"이주는 비참 할 수 있습니다. 빠른 피드백없이 많은 투자를하는 것은 큰 위험입니다.

WebForms는 Rich UI를위한 것입니다

이들은 MVC 또는 웹 포름과 동일하게 수행 할 수 있습니다. 1 년 후에 1 년 동안 풍부한 MVC 기반 툴킷이 도착할 것입니다 (기술적으로는 Yui, Extjs 등을 좋아하는 경우 이미 여기에 있습니다).

현재 프로젝트를 마이그레이션하십시오

기존 WebForms 프로젝트를 MVC로 마이그레이션하는 것은 의미가 없습니다. 당신은 무엇을 얻을 것입니까? 그러나 새로운 프로젝트에 MVC를 사용하면 요구 사항에 따라 많은 의미가 있습니다.

I was never really fond of WebForms to begin with so getting to work with MVC was like a breath of fresh air to me. I've always much preferred the separation of concerns as I could work on the chunks that I was really good at developing, the logic and the data access, and leave the presentation work to the members of the team who had that natural ability. I think the MVC library makes it easier for teams to work together on individual pages as one person can work on the controller and the other person can work on the view.

All that being said, when I'm working on projects where I don't need to focus as much on the coding and it is more display oriented, I still go back to the WebForms because they are so much easier to implement and get up and running. Both have their places and I don't think one will ever supersede the other.

I've been using ASP.NET MVC for several months now and I prefer it to Web Forms. However, I don't see myself migrating my existing projects to MVC. For me, it would be rather pointless. However, all of my new ASP.NET projects will (or should be) developed using MVC, as it is a much better (and more flexible) framework.

Personnaly I restricted ASP.NET MVC for lightweight Front Office Web Sites.

But still using ASP.NET WebForms for Righ BackOffice Applications to take advantage of rich custom controls and some of other nice features of Web Forms.

Another plus for mvc is that javascript like jquery is much easier to implement, so if you plan on using a lot of js, mvc might be the way to go.

No, there's no reason to. It's an alternative style, one I am not fond of. But that's just my opinion; a lot of people like it and I hope it works well for them.

As already said, they're not mutually exclusive, and I play to make good use of both.

IMO MVC is better for web sites, while WebForms are better for web applications.

For example, this site is a perfect showcase for where ASP.NET MVC is a good choice because of the nature of the site and what needs to be accomplished; other good examples would be a web store, or a project management site (like Basecamp), or a social network.

If you were developing a corporate CRM/ERP system, however, I'd stick with WebForms to get rich controls and a more "desktop-like" programming model, since a CRM application is traditionally the domain of a desktop application.

ASP.NET MVC fits my desired style of development better, but I'm wary of trusting myself to it whilst it's not been RTM. It also is different enough that our legacy code will not work with it. If we had been practising Domain-Driven Development things might have been easier, but ...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top