FormInputRenderMode Enum

Definition

Used for configuring how form inputs should be rendered with respect to the current locale.

C#
public enum FormInputRenderMode
Inheritance
FormInputRenderMode

Fields

Name Value Description
DetectCultureFromInputType 0

When appropriate, use InvariantCulture to format HTML input element values. Generate a hidden HTML form input for each value that uses culture-invariant formatting so model binding logic can parse with the correct culture.

AlwaysUseCurrentCulture 1

Always use CurrentCulture to format input element values.

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0