Class MvcHtmlUtils

Set of generic MVC Html Helper utilities

System.Object
  Westwind.Web.Mvc.MvcHtmlUtils
public static class MvcHtmlUtils : object

Class Members

MemberDescription

SelectListItemsFromDictionary

Takes a dictionary of values and turns it into a SelectListItems enumeration. Converts the dictionary keys into the value and the dictionary value into the text.

public static IEnumerable SelectListItemsFromDictionary(IDictionary dict)

SelectListItemsFromEnum

Returns a selectListItem list for an enumerated value

public static IEnumerable SelectListItemsFromEnum(Type enumType,     bool valueAsFieldValueNumber)

SelectListMonths

Returns a select list of months of the year set with 01-12 and a custom format display string (01 - January by default)

public static IEnumerable SelectListMonths(string formatString)

SelectListYears

Gets a select list of years.

public static IEnumerable SelectListYears(int numberOfYears,     int startYear)

Requirements

Namespace: Westwind.Web.Mvc
Assembly: westwind.web.mvc.dll

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic