CommonStateDropDownControl

CommonStateDropDownControl displays the available states in a drop-down list.

State selector showing the available state values.

Configurable properties

Property Default Valid values or format Effect
SelectOneText
String
Not specified   Sets the select-one prompt.
PreSelectedState
String
Not specified   Sets a preselected state.
StateDropDownList
Not specified
Not specified   Exposes the state list used by the control.
stateindex
Integer
Not specified   Gets the selected state index.
statelongname
String
Not specified   Gets the selected state long name.

SitePages.config example

The following example loads CommonStateDropDownControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: SelectOneText, PreSelectedState, StateDropDownList, stateindex, statelongname.

<Control src="CommonStateDropDownControl.ascx" />

Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.

Inherited properties

The control inherits shared visibility and shopper-access conditions from CyberStoreBaseControl.

Validate the control

  1. Display the control in the intended shopper form.
  2. Confirm that available states appear in the drop-down.
  3. Confirm the selected state is accepted by the surrounding form.

This site uses Just the Docs, a documentation theme for Jekyll.