Attributes and editorfor helpers demo

This view uses only EditorFor helpers, and parameters for the helpers are set using. AdditionalMetadata attribute can be used to set any property of the helper.
 
  •  

AttributesDemo/Index.cshtml
@using (Html.BeginForm())
{
@Html.EditorFor(o => o.Number)
@Html.EditorFor(o => o.ParentCategory)
@Html.EditorFor(o => o.Meal1)
@Html.EditorFor(o => o.Meal2)
@Html.EditorFor(o => o.MealCustomSearch)
@Html.EditorFor(o => o.SomeMeals)
<div style="min-height: 187px">
@Html.EditorFor(o => o.SomeCategories)
</div>

@Html.EditorFor(o => o.MealAuto)
@Html.EditorFor(o => o.MealId)
@Html.EditorFor(o => o.Date)
@Html.AntiForgeryToken()
<input type="submit" value="submit" class="awe-btn" />
}



Comments