Export (0) Print
Expand All

HtmlHelper Class

Supports the rendering of HTML controls in a view.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

type HtmlHelper =  class end

The HtmlHelper type exposes the following members.

  NameDescription
Public methodHtmlHelper(ViewContext, IViewDataContainer)Initializes a new instance of the HtmlHelper class by using the specified view context and view data container.
Public methodHtmlHelper(ViewContext, IViewDataContainer, RouteCollection)Initializes a new instance of the HtmlHelper class by using the specified view context, view data container, and route collection.
Top

  NameDescription
Public propertyStatic memberClientValidationEnabledGets or sets a value that indicates whether client validation is enabled.
Public propertyHtml5DateRenderingModeGets or sets the HTML5 date rendering mode.
Public propertyStatic memberIdAttributeDotReplacementGets or sets the character that replaces periods in the ID attribute of an element.
Public propertyRouteCollectionGets or sets the collection of routes for the application.
Public propertyStatic memberUnobtrusiveJavaScriptEnabledGets or sets a value that indicates whether unobtrusive JavaScript is enabled.
Public propertyStatic memberValidationMessageElementElement name used to wrap the validation message generated by ValidationMessage(HtmlHelper, String) and other overloads.
Public propertyStatic memberValidationSummaryMessageElementElement name used to wrap a top-level message in ValidationSummary(HtmlHelper) and other overloads.
Public propertyViewBagGets the view bag.
Public propertyViewContextGets or sets the context information about the view.
Public propertyViewDataGets the current view data dictionary.
Public propertyViewDataContainerGets or sets the view data container.
Top

  NameDescription
Public methodStatic memberAnonymousObjectToHtmlAttributesReplaces underscore characters (_) with hyphens (-) in the specified HTML attributes.
Public methodAntiForgeryToken()Generates a hidden form field (anti-forgery token) that is validated when the form is submitted.
Public methodAntiForgeryToken(String) Obsolete. Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. The field value is generated using the specified salt value.
Public methodAntiForgeryToken(String, String, String) Obsolete. Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. The field value is generated using the specified salt value, domain, and path.
Public methodAttributeEncode(Object)Converts the specified attribute value to an HTML-encoded string.
Public methodAttributeEncode(String)Converts the specified attribute value to an HTML-encoded string.
Public methodEnableClientValidation()Enables input validation that is performed by using client script in the browser.
Public methodEnableClientValidation(Boolean)Enables or disables client validation.
Public methodEnableUnobtrusiveJavaScript()Enables or disables unobtrusive JavaScript.
Public methodEnableUnobtrusiveJavaScript(Boolean)Enables or disables unobtrusive JavaScript.
Public methodEncode(Object)Converts the value of the specified object to an HTML-encoded string.
Public methodEncode(String)Converts the specified string to an HTML-encoded string.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFormatValueFormats the value.
Public methodStatic memberGenerateIdFromName(String)Creates an HTML element ID using the specified element name.
Public methodStatic memberGenerateIdFromName(String, String)Creates an HTML element ID using the specified element name and a string that replaces dots in the name.
Public methodStatic memberGenerateLink(RequestContext, RouteCollection, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Generates an HTML anchor element (a element) that links to the specified action method.
Public methodStatic memberGenerateLink(RequestContext, RouteCollection, String, String, String, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Generates an HTML anchor element (a element) that links to the specified action method, and enables the user to specify the communication protocol, name of the host, and a URL fragment.
Public methodStatic memberGenerateRouteLink(RequestContext, RouteCollection, String, String, RouteValueDictionary, IDictionary(String, Object))Generates an HTML anchor element (a element) that links to the specified URL route.
Public methodStatic memberGenerateRouteLink(RequestContext, RouteCollection, String, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Generates an HTML anchor element (a element) that links to the specified URL route, and enables the user to specify the communication protocol, name of the host, and a URL fragment.
Public methodStatic memberGetFormMethodStringReturns the HTTP method that handles form input (GET or POST) as a string.
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetInputTypeStringReturns the HTML input control type as a string.
Public methodGetType (Inherited from Object.)
Public methodGetUnobtrusiveValidationAttributes(String)Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute.
Public methodGetUnobtrusiveValidationAttributes(String, ModelMetadata)Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute and model metadata.
Public methodHttpMethodOverride(String)Returns a hidden input element that identifies the override method for the specified HTTP data-transfer method that was used by the client.
Public methodHttpMethodOverride(HttpVerbs)Returns a hidden input element that identifies the override method for the specified verb that represents the HTTP data-transfer method used by the client.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberObjectToDictionaryCreates a dictionary from an object, by adding each public instance property as a key with its associated value to the dictionary. It will expose public properties from derived types as well. This is typically used with objects of an anonymous type.
Public methodRaw(Object)Returns markup that is not HTML encoded.
Public methodRaw(String)Returns markup that is not HTML encoded.
Public methodSetValidationMessageElementSet element name used to wrap the validation message generated by ValidationMessage(HtmlHelper, String) and other overloads.
Public methodSetValidationSummaryMessageElementSet element name used to wrap a top-level message in ValidationSummary(HtmlHelper) and other overloads.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAction(String)Overloaded. Invokes the specified child action method and returns the result as an HTML string. (Defined by ChildActionExtensions.)
Public Extension MethodAction(String, Object)Overloaded. Invokes the specified child action method with the specified parameters and returns the result as an HTML string. (Defined by ChildActionExtensions.)
Public Extension MethodAction(String, RouteValueDictionary)Overloaded. Invokes the specified child action method using the specified parameters and returns the result as an HTML string. (Defined by ChildActionExtensions.)
Public Extension MethodAction(String, String)Overloaded. Invokes the specified child action method using the specified controller name and returns the result as an HTML string. (Defined by ChildActionExtensions.)
Public Extension MethodAction(String, String, Object)Overloaded. Invokes the specified action method and returns the result as an HTML string. (Defined by HtmlHelperExtensions.)
Public Extension MethodAction(String, String, Object)Overloaded. Invokes the specified child action method using the specified parameters and controller name and returns the result as an HTML string. (Defined by ChildActionExtensions.)
Public Extension MethodAction(String, String, RouteValueDictionary)Overloaded. Invokes the specified child action method using the specified parameters and controller name and returns the result as an HTML string. (Defined by ChildActionExtensions.)
Public Extension MethodActionLink(String, String)Overloaded. Returns an anchor element (a element) for the specified link text and action. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, Object)Overloaded. Returns an anchor element (a element) for the specified link text, action, and route values. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, RouteValueDictionary)Overloaded. Returns an anchor element (a element) for the specified link text, action, and route values as a route value dictionary. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, String)Overloaded. Returns an anchor element (a element) for the specified link text, action, and controller. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, Object, Object)Overloaded. Returns an anchor element (a element) for the specified link text, action, route values, and HTML attributes. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, RouteValueDictionary, IDictionary(String, Object))Overloaded. Returns an anchor element (a element) for the specified link text, action, route values as a route value dictionary, and HTML attributes as a dictionary. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, String, Object, Object)Overloaded. Returns an anchor element (a element) for the specified link text, action, controller, route values, and HTML attributes. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, String, RouteValueDictionary, IDictionary(String, Object))Overloaded. Returns an anchor element (a element) for the specified link text, action, controller, route values as a route value dictionary, and HTML attributes as a dictionary. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, String, String, String, String, Object, Object)Overloaded. Returns an anchor element (a element) for the specified link text, action, controller, protocol, host name, URL fragment, route values, and HTML attributes. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Overloaded. Returns an anchor element (a element) for the specified link text, action, controller, protocol, host name, URL fragment, route values as a route value dictionary, and HTML attributes as a dictionary. (Defined by LinkExtensions.)
Public Extension MethodActionLink(String, String, String, String, String, String, Object, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by HtmlHelperExtensions.)
Public Extension MethodActionLink(TController)(Expression(Action(TController)), String)Overloaded. Creates an anchor tag based on the passed in controller type and method. (Defined by LinkExtensions.)
Public Extension MethodActionLink(TController)(Expression(Action(TController)), String, Object)Overloaded. Creates an anchor tag based on the passed in controller type and method. (Defined by LinkExtensions.)
Public Extension MethodBeginForm()Overloaded. Writes an opening <form> tag to the response. The form uses the POST method, and the request is processed by the action method for the view. (Defined by FormExtensions.)
Public Extension MethodBeginForm(Object)Overloaded. Writes an opening <form> tag to the response and includes the route values in the action attribute. The form uses the POST method, and the request is processed by the action method for the view. (Defined by FormExtensions.)
Public Extension MethodBeginForm(RouteValueDictionary)Overloaded. Writes an opening <form> tag to the response and includes the route values from the route value dictionary in the action attribute. The form uses the POST method, and the request is processed by the action method for the view. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String)Overloaded. Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the POST method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, Object)Overloaded. Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values. The form uses the POST method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, RouteValueDictionary)Overloaded. Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values from the route value dictionary. The form uses the POST method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, FormMethod)Overloaded. Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the specified HTTP method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, Object, FormMethod)Overloaded. Writes an opening <form> tag to the response and sets the action tag to the specified controller, action, and route values. The form uses the specified HTTP method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, RouteValueDictionary, FormMethod)Overloaded. Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values from the route value dictionary. The form uses the specified HTTP method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, FormMethod, Object)Overloaded. Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the specified HTTP method and includes the HTML attributes. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, FormMethod, IDictionary(String, Object))Overloaded. Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the specified HTTP method and includes the HTML attributes from a dictionary. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, Object, FormMethod, Object)Overloaded. Writes an opening <form> tag to the response and sets the action tag to the specified controller, action, and route values. The form uses the specified HTTP method and includes the HTML attributes. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, RouteValueDictionary, FormMethod, IDictionary(String, Object))Overloaded. Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values from the route value dictionary. The form uses the specified HTTP method, and includes the HTML attributes from the dictionary. (Defined by FormExtensions.)
Public Extension MethodBeginForm(String, String, Object, FormMethod, String, String, String, String, String, String, String, String, String, String)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method. (Defined by HtmlHelperExtensions.)
Public Extension MethodBeginForm(TController)(Expression(Action(TController)))Overloaded. Writes an opening form tag to the response. When the user submits the form, the request will be processed by an action method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(TController)(Expression(Action(TController)), FormMethod)Overloaded. Writes an opening form tag to the response. When the user submits the form, the request will be processed by an action method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(TController)(Expression(Action(TController)), FormMethod, Object)Overloaded. Writes an opening form tag to the response. When the user submits the form, the request will be processed by an action method. (Defined by FormExtensions.)
Public Extension MethodBeginForm(TController)(Expression(Action(TController)), FormMethod, IDictionary(String, Object))Overloaded. Writes an opening form tag to the response. When the user submits the form, the request will be processed by an action method. (Defined by FormExtensions.)
Public Extension MethodBeginResourceForm(String, Object)Overloaded. Generates the Form preamble, defaulting the link for the Retrieve action. (Defined by HtmlHelperExtensions.)
Public Extension MethodBeginResourceForm(String, Object, ActionType)Overloaded. Generates the Form preamble. (Defined by HtmlHelperExtensions.)
Public Extension MethodBeginResourceForm(String, Object, Object, ActionType)Overloaded. Generates the Form preamble. (Defined by HtmlHelperExtensions.)
Public Extension MethodBeginRouteForm(Object)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(RouteValueDictionary)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, Object)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, RouteValueDictionary)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, FormMethod)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, Object, FormMethod)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, RouteValueDictionary, FormMethod)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, FormMethod, Object)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, FormMethod, IDictionary(String, Object))Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, Object, FormMethod, Object)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, RouteValueDictionary, FormMethod, IDictionary(String, Object))Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by FormExtensions.)
Public Extension MethodBeginRouteForm(String, RouteValueDictionary, FormMethod, String, String, String, String, String, String, String, String, String, String)Overloaded. Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target. (Defined by HtmlHelperExtensions.)
Public Extension MethodBuildUrlFromExpression(TController)Builds a URL from the given expression. (Defined by LinkExtensions.)
Public Extension MethodButton(String, String, HtmlButtonType)Overloaded. A Simple button you can use with JavaScript. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodButton(String, String, HtmlButtonType, String)Overloaded. A Simple button you can use with JavaScript. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodButton(String, String, HtmlButtonType, String, Object)Overloaded. A Simple button you can use with JavaScript. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodButton(String, String, HtmlButtonType, String, IDictionary(String, Object))Overloaded. A Simple button you can use with JavaScript. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodCheckBox(String)Overloaded. Returns a check box input element by using the specified HTML helper and the name of the form field. (Defined by InputExtensions.)
Public Extension MethodCheckBox(String, Boolean)Overloaded. Returns a check box input element by using the specified HTML helper, the name of the form field, and a value to indicate whether the check box is selected. (Defined by InputExtensions.)
Public Extension MethodCheckBox(String, Object)Overloaded. Returns a check box input element by using the specified HTML helper, the name of the form field, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodCheckBox(String, IDictionary(String, Object))Overloaded. Returns a check box input element by using the specified HTML helper, the name of the form field, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodCheckBox(String, Boolean, Object)Overloaded. Returns a check box input element by using the specified HTML helper, the name of the form field, a value that indicates whether the check box is selected, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodCheckBox(String, Boolean, IDictionary(String, Object))Overloaded. Returns a check box input element by using the specified HTML helper, the name of the form field, a value to indicate whether the check box is selected, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodCheckBox(String, Nullable(Boolean), String, String, Boolean, String, String, Nullable(Int32), Boolean, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns a check box input element by using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodCss(String)Overloaded. Indicates the CSS method that you can use for MVC. (Defined by CssExtensions.)
Public Extension MethodCss(String, String)Overloaded. Indicates the CSS method that you can use for MVC. (Defined by CssExtensions.)
Public Extension MethodDisplay(String)Overloaded. Returns HTML markup for each property in the object that is represented by a string expression. (Defined by DisplayExtensions.)
Public Extension MethodDisplay(String, Object)Overloaded. Returns HTML markup for each property in the object that is represented by a string expression, using additional view data. (Defined by DisplayExtensions.)
Public Extension MethodDisplay(String, String)Overloaded. Returns HTML markup for each property in the object that is represented by the expression, using the specified template. (Defined by DisplayExtensions.)
Public Extension MethodDisplay(String, String, String)Overloaded. Returns HTML markup for each property in the object that is represented by a string expression. (Defined by HtmlHelperExtensions.)
Public Extension MethodDisplay(String, String, Object)Overloaded. Returns HTML markup for each property in the object that is represented by the expression, using the specified template and additional view data. (Defined by DisplayExtensions.)
Public Extension MethodDisplay(String, String, String)Overloaded. Returns HTML markup for each property in the object that is represented by the expression, using the specified template and an HTML field ID. (Defined by DisplayExtensions.)
Public Extension MethodDisplay(String, String, String, Object)Overloaded. Returns HTML markup for each property in the object that is represented by the expression, using the specified template, HTML field ID, and additional view data. (Defined by DisplayExtensions.)
Public Extension MethodDisplayForModel()Overloaded. Returns HTML markup for each property in the model. (Defined by DisplayExtensions.)
Public Extension MethodDisplayForModel(Object)Overloaded. Returns HTML markup for each property in the model, using additional view data. (Defined by DisplayExtensions.)
Public Extension MethodDisplayForModel(String)Overloaded. Returns HTML markup for each property in the model using the specified template. (Defined by DisplayExtensions.)
Public Extension MethodDisplayForModel(String, String)Overloaded. Returns HTML markup for each property in the model. (Defined by HtmlHelperExtensions.)
Public Extension MethodDisplayForModel(String, Object)Overloaded. Returns HTML markup for each property in the model, using the specified template and additional view data. (Defined by DisplayExtensions.)
Public Extension MethodDisplayForModel(String, String)Overloaded. Returns HTML markup for each property in the model using the specified template and HTML field ID. (Defined by DisplayExtensions.)
Public Extension MethodDisplayForModel(String, String, Object)Overloaded. Returns HTML markup for each property in the model, using the specified template, an HTML field ID, and additional view data. (Defined by DisplayExtensions.)
Public Extension MethodDisplayNameGets the display name. (Defined by DisplayNameExtensions.)
Public Extension MethodDisplayNameForModelGets the display name for the model. (Defined by DisplayNameExtensions.)
Public Extension MethodDisplayText(String)Overloaded. Returns HTML markup for each property in the object that is represented by the specified expression. (Defined by HtmlHelperExtensions.)
Public Extension MethodDisplayText(String)Overloaded. Returns HTML markup for each property in the object that is represented by the specified expression. (Defined by DisplayTextExtensions.)
Public Extension MethodDropDownList(String)Overloaded. Returns a single-selection select element using the specified HTML helper and the name of the form field. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, String)Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, and an option label. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem))Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, and the specified list items. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem), Object)Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, and the specified HTML attributes. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem), IDictionary(String, Object))Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, and the specified HTML attributes. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem), String)Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, and an option label. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem), String, Object)Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, an option label, and the specified HTML attributes. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem), String, IDictionary(String, Object))Overloaded. Returns a single-selection select element using the specified HTML helper, the name of the form field, the specified list items, an option label, and the specified HTML attributes. (Defined by SelectExtensions.)
Public Extension MethodDropDownList(String, IEnumerable(SelectListItem), String, String, String, Boolean, String, String, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns a single-selection select element using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodEditor(String)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression. (Defined by EditorExtensions.)
Public Extension MethodEditor(String, Object)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression, using additional view data. (Defined by EditorExtensions.)
Public Extension MethodEditor(String, String)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression, using the specified template. (Defined by EditorExtensions.)
Public Extension MethodEditor(String, String, String)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression. (Defined by HtmlHelperExtensions.)
Public Extension MethodEditor(String, String, Object)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data. (Defined by EditorExtensions.)
Public Extension MethodEditor(String, String, String)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and HTML field name. (Defined by EditorExtensions.)
Public Extension MethodEditor(String, String, String, Object)Overloaded. Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data. (Defined by EditorExtensions.)
Public Extension MethodEditorForModel()Overloaded. Returns an HTML input element for each property in the model. (Defined by EditorExtensions.)
Public Extension MethodEditorForModel(Object)Overloaded. Returns an HTML input element for each property in the model, using additional view data. (Defined by EditorExtensions.)
Public Extension MethodEditorForModel(String)Overloaded. Returns an HTML input element for each property in the model, using the specified template. (Defined by EditorExtensions.)
Public Extension MethodEditorForModel(String, String)Overloaded. Returns an HTML input element for each property in the model. (Defined by HtmlHelperExtensions.)
Public Extension MethodEditorForModel(String, Object)Overloaded. Returns an HTML input element for each property in the model, using the specified template and additional view data. (Defined by EditorExtensions.)
Public Extension MethodEditorForModel(String, String)Overloaded. Returns an HTML input element for each property in the model, using the specified template name and HTML field name. (Defined by EditorExtensions.)
Public Extension MethodEditorForModel(String, String, Object)Overloaded. Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data. (Defined by EditorExtensions.)
Public Extension MethodEndForm()Overloaded. Renders the closing </form> tag to the response. (Defined by HtmlHelperExtensions.)
Public Extension MethodEndForm()Overloaded. Renders the closing </form> tag to the response. (Defined by FormExtensions.)
Public Extension MethodHidden(String)Overloaded. Returns a hidden input element by using the specified HTML helper and the name of the form field. (Defined by InputExtensions.)
Public Extension MethodHidden(String, Object)Overloaded. Returns a hidden input element by using the specified HTML helper, the name of the form field, and the value. (Defined by InputExtensions.)
Public Extension MethodHidden(String, Object, Object)Overloaded. Returns a hidden input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodHidden(String, Object, IDictionary(String, Object))Overloaded. Returns a hidden input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodHidden(String, Object, String, String, String)Overloaded. Returns a hidden input element by using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodHttpMethodOverrideEmits a hidden form variable for X-Http-Method-Override. The only valid values for actionType are ActionType.Delete and ActionType.Update. (Defined by HtmlHelperExtensions.)
Public Extension MethodIdGets the ID of the HtmlHelper string. (Defined by NameExtensions.)
Public Extension MethodIdForModelGets the ID of the HtmlHelper string. (Defined by NameExtensions.)
Public Extension MethodImage(String)Overloaded. Displays the image with the specified parameters. (Defined by ImageExtensions.)
Public Extension MethodImage(String, String)Overloaded. Displays the image with the specified parameters. (Defined by ImageExtensions.)
Public Extension MethodImage(String, Object)Overloaded. Displays the image with the specified parameters. (Defined by ImageExtensions.)
Public Extension MethodImage(String, IDictionary(String, Object))Overloaded. Displays the image with the specified parameters. (Defined by ImageExtensions.)
Public Extension MethodImage(String, String, Object)Overloaded. Displays the image with the specified parameters. (Defined by ImageExtensions.)
Public Extension MethodImage(String, String, IDictionary(String, Object))Overloaded. Displays the image with the specified parameters. (Defined by ImageExtensions.)
Public Extension MethodLabel(String)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by HtmlHelperExtensions.)
Public Extension MethodLabel(String)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabel(String, String)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text. (Defined by LabelExtensions.)
Public Extension MethodLabel(String, Object)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabel(String, IDictionary(String, Object))Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabel(String, String, Object)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabel(String, String, IDictionary(String, Object))Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabelForModel()Overloaded. Returns an HTML label element and the property name of the property that is represented by the model. (Defined by HtmlHelperExtensions.)
Public Extension MethodLabelForModel()Overloaded. Returns an HTML label element and the property name of the property that is represented by the model. (Defined by LabelExtensions.)
Public Extension MethodLabelForModel(String)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text. (Defined by LabelExtensions.)
Public Extension MethodLabelForModel(Object)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabelForModel(IDictionary(String, Object))Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabelForModel(String, Object)Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodLabelForModel(String, IDictionary(String, Object))Overloaded. Returns an HTML label element and the property name of the property that is represented by the specified expression. (Defined by LabelExtensions.)
Public Extension MethodListBox(String)Overloaded. Returns a multi-select select element using the specified HTML helper and the name of the form field. (Defined by SelectExtensions.)
Public Extension MethodListBox(String, IEnumerable(SelectListItem))Overloaded. Returns a multi-select select element using the specified HTML helper, the name of the form field, and the specified list items. (Defined by SelectExtensions.)
Public Extension MethodListBox(String, IEnumerable(SelectListItem), Object)Overloaded. Returns a multi-select select element using the specified HTML helper, the name of the form field, and the specified list items. (Defined by SelectExtensions.)
Public Extension MethodListBox(String, IEnumerable(SelectListItem), IDictionary(String, Object))Overloaded. Returns a multi-select select element using the specified HTML helper, the name of the form field, the specified list items, and the specified HMTL attributes. (Defined by SelectExtensions.)
Public Extension MethodListBox(String, IEnumerable(SelectListItem), String, String, Boolean, String, String, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns a multi-select select element using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodMailto(String, String)Overloaded. Mails to the specified extensions using the helper, link text and email address. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, Object)Overloaded. Mails to the specified extensions using the helper, link text, email address and html attributes. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, IDictionary(String, Object))Overloaded. Mails to the specified extensions using the helper, link text, email address and html attributes. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, String)Overloaded. Mails to the specified extensions using the helper, link text, email address and subject. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, String, Object)Overloaded. Mails to the specified extensions using the helper, link text, email address, subject and html attributes. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, String, IDictionary(String, Object))Overloaded. Mails to the specified extensions using the helper, link text, email address, subject and html attributes. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, String, String, String, String, Object)Overloaded. Mails to the specified extensions using the helper, link text, email address, subject, body, cc, bcc, and html attributes. (Defined by MailToExtensions.)
Public Extension MethodMailto(String, String, String, String, String, String, IDictionary(String, Object))Overloaded. Mails to the specified extensions using the helper, link text, email address, subject, body, cc, bcc, and html attributes. (Defined by MailToExtensions.)
Public Extension MethodNameGets the full HTML field name for the object that is represented by the expression. (Defined by NameExtensions.)
Public Extension MethodNameForModelGets the full HTML field name for the object that is represented by the expression. (Defined by NameExtensions.)
Public Extension MethodPartial(String)Overloaded. Renders the specified partial view as an HTML-encoded string. (Defined by PartialExtensions.)
Public Extension MethodPartial(String, ViewDataDictionary)Overloaded. Renders the specified partial view as an HTML-encoded string. (Defined by PartialExtensions.)
Public Extension MethodPartial(String, Object)Overloaded. Renders the specified partial view as an HTML-encoded string. (Defined by PartialExtensions.)
Public Extension MethodPartial(String, Object, ViewDataDictionary)Overloaded. Renders the specified partial view as an HTML-encoded string. (Defined by HtmlHelperExtensions.)
Public Extension MethodPartial(String, Object, ViewDataDictionary)Overloaded. Renders the specified partial view as an HTML-encoded string. (Defined by PartialExtensions.)
Public Extension MethodPassword(String)Overloaded. Returns a password input element by using the specified HTML helper and the name of the form field. (Defined by InputExtensions.)
Public Extension MethodPassword(String, Object)Overloaded. Returns a password input element by using the specified HTML helper, the name of the form field, and the value. (Defined by InputExtensions.)
Public Extension MethodPassword(String, Object, Object)Overloaded. Returns a password input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodPassword(String, Object, IDictionary(String, Object))Overloaded. Returns a password input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodPassword(String, Object, String, String, Boolean, String, String, Nullable(Int32), Boolean, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns a password input element by using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodRadioButton(String, Object)Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by InputExtensions.)
Public Extension MethodRadioButton(String, Object, Object)Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by InputExtensions.)
Public Extension MethodRadioButton(String, Object, IDictionary(String, Object))Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by InputExtensions.)
Public Extension MethodRadioButton(String, Object, Boolean)Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by InputExtensions.)
Public Extension MethodRadioButton(String, Object, Boolean, Object)Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by InputExtensions.)
Public Extension MethodRadioButton(String, Object, Boolean, IDictionary(String, Object))Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by InputExtensions.)
Public Extension MethodRadioButton(String, Object, Nullable(Boolean), String, String, Boolean, String, String, Nullable(Int32), Boolean, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns a radio button input element that is used to present mutually exclusive options. (Defined by HtmlHelperExtensions.)
Public Extension MethodRadioButtonList(String)Overloaded. Displays a list control that encapsulates a group of radio button controls. (Defined by RadioListExtensions.)
Public Extension MethodRadioButtonList(String, Object)Overloaded. Displays a list control that encapsulates a group of radio button controls. (Defined by RadioListExtensions.)
Public Extension MethodRadioButtonList(String, IDictionary(String, Object))Overloaded. Displays a list control that encapsulates a group of radio button controls. (Defined by RadioListExtensions.)
Public Extension MethodRadioButtonList(String, IEnumerable(SelectListItem))Overloaded. Displays a list control that encapsulates a group of radio button controls. (Defined by RadioListExtensions.)
Public Extension MethodRadioButtonList(String, IEnumerable(SelectListItem), Object)Overloaded. Displays a list control that encapsulates a group of radio button controls. (Defined by RadioListExtensions.)
Public Extension MethodRadioButtonList(String, IEnumerable(SelectListItem), IDictionary(String, Object))Overloaded. Displays a list control that encapsulates a group of radio button controls. (Defined by RadioListExtensions.)
Public Extension MethodRenderAction(String)Overloaded. Invokes the specified child action method and renders the result inline in the parent view. (Defined by ChildActionExtensions.)
Public Extension MethodRenderAction(String, Object)Overloaded. Invokes the specified child action method using the specified parameters and renders the result inline in the parent view. (Defined by ChildActionExtensions.)
Public Extension MethodRenderAction(String, RouteValueDictionary)Overloaded. Invokes the specified child action method using the specified parameters and renders the result inline in the parent view. (Defined by ChildActionExtensions.)
Public Extension MethodRenderAction(String, String)Overloaded. Invokes the specified child action method using the specified controller name and renders the result inline in the parent view. (Defined by ChildActionExtensions.)
Public Extension MethodRenderAction(String, String, Object)Overloaded. Invokes the specified child action method and renders the result inline in the parent view. (Defined by HtmlHelperExtensions.)
Public Extension MethodRenderAction(String, String, Object)Overloaded. Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view. (Defined by ChildActionExtensions.)
Public Extension MethodRenderAction(String, String, RouteValueDictionary)Overloaded. Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view. (Defined by ChildActionExtensions.)
Public Extension MethodRenderAction(TController)(Expression(Action(TController)))Overloaded. Invokes the specified action method. (Defined by ViewExtensions.)
Public Extension MethodRenderPartial(String)Overloaded. Renders the specified partial view by using the specified HTML helper. (Defined by RenderPartialExtensions.)
Public Extension MethodRenderPartial(String, ViewDataDictionary)Overloaded. Renders the specified partial view, replacing its ViewData property with the specified ViewDataDictionary object. (Defined by RenderPartialExtensions.)
Public Extension MethodRenderPartial(String, Object)Overloaded. Renders the specified partial view, passing it a copy of the current ViewDataDictionary object, but with the Model property set to the specified model. (Defined by RenderPartialExtensions.)
Public Extension MethodRenderPartial(String, Object, ViewDataDictionary)Overloaded. Renders the specified partial view by using the specified HTML helper. (Defined by HtmlHelperExtensions.)
Public Extension MethodRenderPartial(String, Object, ViewDataDictionary)Overloaded. Renders the specified partial view, replacing the partial view's ViewData property with the specified ViewDataDictionary object and setting the Model property of the view data to the specified model. (Defined by RenderPartialExtensions.)
Public Extension MethodRenderRouteInvokes the specified route values. (Defined by ViewExtensions.)
Public Extension MethodResourceLink(String, Object)Overloaded. Generates a link to the resource controller, defaulting to the Retrieve action. (Defined by HtmlHelperExtensions.)
Public Extension MethodResourceLink(String, String, Object)Overloaded. Generates a link to the resource controller, defaulting to the Retrieve action. (Defined by HtmlHelperExtensions.)
Public Extension MethodResourceLink(String, String, Object, ActionType)Overloaded. Generates a link to the resource controller, defaulting to the Retrieve action. (Defined by HtmlHelperExtensions.)
Public Extension MethodRouteLink(String, Object)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, RouteValueDictionary)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, Object)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, RouteValueDictionary)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, Object, Object)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, RouteValueDictionary, IDictionary(String, Object))Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, Object, Object)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, RouteValueDictionary, IDictionary(String, Object))Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, String, String, String, Object, Object)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by LinkExtensions.)
Public Extension MethodRouteLink(String, String, String, String, String, Object, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)Overloaded. Returns an anchor element (a element) that contains the virtual path of the specified action. (Defined by HtmlHelperExtensions.)
Public Extension MethodScript(String)Overloaded. Generates a script file. (Defined by ScriptExtensions.)
Public Extension MethodScript(String, String)Overloaded. Generates a script file. (Defined by ScriptExtensions.)
Public Extension MethodSerialize(String)Overloaded. Serializes the html with the specified parameters. (Defined by SerializationExtensions.)
Public Extension MethodSerialize(String, Object)Overloaded. Serializes the html with the specified parameters. (Defined by SerializationExtensions.)
Public Extension MethodSubmitButton()Overloaded. Creates a submit button for your form. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitButton(String)Overloaded. Creates a submit button for your form. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitButton(String, String)Overloaded. Creates a submit button for your form. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitButton(String, String, Object)Overloaded. Creates a submit button for your form. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitButton(String, String, IDictionary(String, Object))Overloaded. Creates a submit button for your form. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitImage(String, String)Overloaded. Creates a submit button for your form using an image. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitImage(String, String, Object)Overloaded. Creates a submit button for your form using an image. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodSubmitImage(String, String, IDictionary(String, Object))Overloaded. Creates a submit button for your form using an image. (Defined by ButtonsAndLinkExtensions.)
Public Extension MethodTextArea(String)Overloaded. Returns the specified textarea element by using the specified HTML helper and the name of the form field. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, Object)Overloaded. Returns the specified textarea element by using the specified HTML helper and HTML attributes. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, IDictionary(String, Object))Overloaded. Returns the specified textarea element by using the specified HTML helper, the name of the form field, and the specified HTML attributes. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, String)Overloaded. Returns the specified textarea element by using the specified HTML helper, the name of the form field, and the text content. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, String, Object)Overloaded. Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, and the specified HTML attributes. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, String, IDictionary(String, Object))Overloaded. Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, and the specified HTML attributes. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, String, Int32, Int32, Object)Overloaded. Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, the number of rows and columns, and the specified HTML attributes. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, String, Int32, Int32, IDictionary(String, Object))Overloaded. Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, the number of rows and columns, and the specified HTML attributes. (Defined by TextAreaExtensions.)
Public Extension MethodTextArea(String, String, String, String, Nullable(Int32), String, Boolean, String, String, Boolean, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns the specified textarea element by using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodTextBox(String)Overloaded. Returns a text input element by using the specified HTML helper and the name of the form field. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object)Overloaded. Returns a text input element by using the specified HTML helper, the name of the form field, and the value. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object, String)Overloaded. Returns a text input element. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object, Object)Overloaded. Returns a text input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object, IDictionary(String, Object))Overloaded. Returns a text input element by using the specified HTML helper, the name of the form field, the value, and the HTML attributes. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object, String, Object)Overloaded. Returns a text input element. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object, String, IDictionary(String, Object))Overloaded. Returns a text input element. (Defined by InputExtensions.)
Public Extension MethodTextBox(String, Object, String, String, Boolean, String, String, Nullable(Int32), Boolean, Nullable(Int32), String, Nullable(Int32), String)Overloaded. Returns a text input element by using the specified HTML helper and the name of the form field. (Defined by HtmlHelperExtensions.)
Public Extension MethodValidate(String)Overloaded. Retrieves the validation metadata for the specified model and applies each rule to the data field. (Defined by HtmlHelperExtensions.)
Public Extension MethodValidate(String)Overloaded. Retrieves the validation metadata for the specified model and applies each rule to the data field. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String)Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, Object)Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String)Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, IDictionary(String, Object))Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, Object, String)Overloaded. Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String, Object)Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String, String)Overloaded. Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, IDictionary(String, Object), String)Overloaded. Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String, IDictionary(String, Object))Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String, Object, String)Overloaded. Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String, IDictionary(String, Object), String)Overloaded. Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationMessage(String, String, String, String, String, String, String, String)Overloaded. Displays a validation message if an error exists for the specified field in the ModelStateDictionary object. (Defined by HtmlHelperExtensions.)
Public Extension MethodValidationSummary()Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean)Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String)Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String, String)Overloaded. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean, String)Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String, Object)Overloaded. Returns an unordered list (ul element) of validation messages in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String, IDictionary(String, Object))Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean, String, String)Overloaded. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String, Object, String)Overloaded. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean, String, Object)Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String, IDictionary(String, Object), String)Overloaded. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean, String, IDictionary(String, Object))Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean, String, Object, String)Overloaded. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(Boolean, String, IDictionary(String, Object), String)Overloaded. (Defined by ValidationExtensions.)
Public Extension MethodValidationSummary(String, Boolean, String, String, String, String, String, String)Overloaded. Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object. (Defined by HtmlHelperExtensions.)
Public Extension MethodValue(String)Overloaded. Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. (Defined by ValueExtensions.)
Public Extension MethodValue(String, String)Overloaded. Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. (Defined by ValueExtensions.)
Public Extension MethodValueForModel()Overloaded. Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. (Defined by ValueExtensions.)
Public Extension MethodValueForModel(String)Overloaded. Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. (Defined by ValueExtensions.)
Top

  NameDescription
Public fieldStatic memberValidationInputCssClassNameThe name of the CSS class that is used to style an input field when a validation error occurs.
Public fieldStatic memberValidationInputValidCssClassNameThe name of the CSS class that is used to style an input field when the input is valid.
Public fieldStatic memberValidationMessageCssClassNameThe name of the CSS class that is used to style the error message when a validation error occurs.
Public fieldStatic memberValidationMessageValidCssClassNameThe name of the CSS class that is used to style the validation message when the input is valid.
Public fieldStatic memberValidationSummaryCssClassNameThe name of the CSS class that is used to style validation summary error messages.
Public fieldStatic memberValidationSummaryValidCssClassNameThe name of the CSS class that is used to style the validation summary when the input is valid.
Top

The HtmlHelper class provides methods that help you create HTML controls programmatically. All HtmlHelper methods generate HTML and return the result as a string.

NoteNote

The HtmlHelper class is designed to generate UI. It should not be used in controllers or models.

Extension methods for the HtmlHelper class are in the System.Web.Mvc.Html namespace. These extensions add helper methods for creating forms, rendering HTML controls, rendering partial views, performing input validation, and more.

You can use the HtmlHelper class in a view by using the built-in Html property of the view. For example, calling @Html.ValidationSummary() renders a summary of validation messages.

When using an extension method to render an HTML element that includes a value, it is important to understand how that value is retrieved. For elements other than a password element (such as a text box or radio button), the value is retrieved in this order - the ModelStateDictionary object, the value of the value parameter in the extension method, the ViewDataDictionary object, and lastly, a value attribute in the html attributes. For a password element, the value of the element is retrieved from the value parameter in the extension method, or the the value attribute in the html attributes if the parameter is not provided.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft