Question

Is there any comparison? Pros and cons?

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top