HtmlHelperOptions Class

Definition

Provides programmatic configuration for the HTML helpers and ViewContext.

C#
public class HtmlHelperOptions
Inheritance
HtmlHelperOptions

Constructors

Properties

CheckBoxHiddenInputRenderMode

Gets or sets the way hidden inputs are rendered for checkbox tag helpers and html helpers.

ClientValidationEnabled

Gets or sets a value that indicates whether client-side validation is enabled.

FormInputRenderMode

Gets or sets a value that determines how form <input/> elements are rendered.

Html5DateRenderingMode

Gets or sets the Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode.#ctor value.

IdAttributeDotReplacement

Gets or sets the String that replaces periods in the ID attribute of an element.

ValidationMessageElement

Gets or sets the element name used to wrap a top-level message generated by ValidationMessage(String, String, Object, String) and other overloads.

ValidationSummaryMessageElement

Gets or sets the element name used to wrap a top-level message generated by ValidationSummary(Boolean, String, Object, String) and other overloads.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0