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

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.

Inline 1

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

None 0

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

Applies to