Click or drag to resize

ConvertCheckBoxToBool Method

Use Html.CheckBox and Html.CheckBoxFor resturn

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static bool CheckBoxToBool(
	string pValue
)

Parameters

pValue
Type: SystemString

[Missing <param name="pValue"/> documentation for "M:SOWIWeb.Helper.Convert.CheckBoxToBool(System.String)"]

Return Value

Type: Boolean
true = checked; false = unchecked
Remarks
Checked handling in input "false" für unchecked; "true, false" für checked Example:
@Html.CheckBox(item.RoleName, item.IsSelected) Helper rendering:
<input id="Instruktor" name="Instruktor" type="checkbox" value="true" /><input name="Instruktor" type="hidden" value="false" />
See Also