Click or drag to resize

AmendableComboSelectOrAddItem Method

Select the specified item (by value) or, if not found in list, add the item to the list, select it, and track it as the amendment. Note that any existing amendment is first removed.

Namespace:  NetQuarry.WebControls
Assembly:  EAP.WebControls (in EAP.WebControls.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public bool SelectOrAddItem(
	string text,
	string val
)

Parameters

text
Type: SystemString
The text of the item.
val
Type: SystemString
The value of the item.

Return Value

Type: Boolean
True if the item was added, else false indicating that the item was already present in the list.
See Also