C# Class Framework.Mvc.ElementsTypes.ElementTypeUtility

Contains helpers classes for working with elements.
Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
RenderElementType ( HtmlHelper html, ElementType elementType, String name, String value, String values ) : String

Renders the element by the type.

ValidateElement ( ElementType elementType, String name, String value, ModelStateDictionary modelState ) : void

Validates the element.

Method Details

RenderElementType() public static method

Renders the element by the type.
public static RenderElementType ( HtmlHelper html, ElementType elementType, String name, String value, String values ) : String
html HtmlHelper The HTML helper.
elementType ElementType Type of the element.
name String The element name.
value String The element value.
values String The element values.
return String

ValidateElement() public static method

Validates the element.
public static ValidateElement ( ElementType elementType, String name, String value, ModelStateDictionary modelState ) : void
elementType ElementType Type of the element.
name String The element name.
value String The element value.
modelState ModelStateDictionary State of the model.
return void