CodeCharge Studio

State Run-Time Property (ASP)

Applies to

Checkbox Control

Type

Boolean

Access

read/write

Syntax

object.State [=value]

Description

This property stores the current state of the control (it may hold one of the two values that correspond to checked and unchecked state of the control).

Examples

The sample code below sets the "checked" state of the control (in the BeforeShow event procedure of the checkbox control) if a new article is edited (no article_id value has been passed to the page):

If not Len(CCGetParam("article_id","")) > 0 Then
  articles.Verified_cb.State = articles.Verified_cb.CheckedValue
End if

See also

Value property


On-line, printable versions and updates