public static class MvcHtmlUtils : object
Member | Description | |
---|---|---|
RenderPartialViewToString | Renders a Razor view to a string. public static string RenderPartialViewToString(string viewPath,
object model, ControllerContext controllerContext); |
|
RenderViewToString | Renders a Razor view to a string. public static string RenderViewToString(string viewPath,
object model, ControllerContext controllerContext); public static string RenderViewToString(string viewPath,
object model, ControllerContext controllerContext, bool partial, ref string razorErrorMessage); |
|
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<SelectListItem> SelectListItemsFromDictionary(IDictionary dict);
|
|
SelectListItemsFromEnum | Returns a selectListItem list for an enumerated value public static IEnumerable<SelectListItem> SelectListItemsFromEnum(Type enumType,
bool valueAsFieldValueNumber); |