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

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
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