CheckBoxHiddenInputRenderMode Enum

Definition

Controls the rendering of hidden input fields when using CheckBox tag helpers or html helpers.

public enum class CheckBoxHiddenInputRenderMode
public enum CheckBoxHiddenInputRenderMode
type CheckBoxHiddenInputRenderMode = 
Public Enum CheckBoxHiddenInputRenderMode
Inheritance
CheckBoxHiddenInputRenderMode

Fields

Name Value Description
None 0

Hidden input fields will not be automatically rendered. If checkbox is not checked, no value will be posted.

Inline 1

Hidden input fields will be rendered inline with each checkbox. Use this for legacy ASP.NET MVC behavior.

EndOfForm 2

Hidden input fields will be rendered for each checkbox at the bottom of the form element. This is the preferred render method and default MVC behavior. If CanRenderAtEndOfForm is false, will fall back on Inline.

Applies to