MVC Html Helpers

DropDownListFor View helper sample code @Html.DropDownListFor(model => model.OperatorValue, (List<SelectListItem>)ViewData[“OperatorValue_SelectList”], new { @class = “form-control” }) Controller sample code, this can […]

Read more

MVC Data Annotations

Date formatting [DisplayFormat(DataFormatString = “{0:dd/MM/yyyy}”, ApplyFormatInEditMode = true)] Number formatting [DisplayFormat(DataFormatString = “{0:N}”, ApplyFormatInEditMode = true)]

Read more
1 2 3 4 5 9