CodeCharge Studio

Unchecked Value Property

The value submitted by a Checkbox Control when it is unchecked.

Applies to

Checkbox

Description

In conjunction to the Checked Value property, this property allows you to specify a value to be associated with the unchecked state of the checkbox. Ordinarily, an unchecked HTML checkbox does not submit any value, this property can be used to associate a value with the unchecked state.

Examples

This control can be used to update a database field of the "Text" type, which stores the 'Yes' or 'No' value. In order to do that you can set the DataType property to 'Text', and enter "Yes" for the Checked Value property and "No" for the Unchecked Value Property. The value should be obligatory entered in double quotes.

The following are the possible applications:
Data Type Checked Value Unchecked Value
Text "Y" "N"
Integer 1 0
Boolean True False

See Also

Checked Value property, DataType property


On-line, printable versions and updates