Click or drag to resize
ControlsHelperFindItemByValue Method
Searches for the DropDownList item with given value.

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 9.0.0
Syntax
C#
public static ListItem FindItemByValue(
	DropDownList control,
	string value,
	bool caseSensitive
)

Parameters

control
Type: System.Web.UI.WebControlsDropDownList
Control to search
value
Type: SystemString
Value to search
caseSensitive
Type: SystemBoolean
Case sensitive search

Return Value

Type: ListItem
See Also