문제

Is there any comparison? Pros and cons?

도움이 되었습니까?

해결책

MVC 2 editor template is an evolution of MVCContrib input builder.

It's true that is missing a few things, like Darin Dimitrov said, but It's a fact that it's has a stronger architecture.

Pros:

  1. Have a special folder EditorTemplates under the shared folder AND under the view! (area supported too). In the older MVCContrib input builder you must put the templates in the a shared folder. In order to use it with a special folder you must add a new view engine that will look on this folder.

Cons:

None.

다른 팁

Pros of input builders: they can recognize attributes on the model such as MaximumStringLength and set the maxlength html attribute. They also can recognize the presence of the Required attribute and put the required class on the element.

Pros of editor templates: support of incremental sequencing.

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