ControlsHelperFindItemByValue Method |
Searches for the DropDownList item with given value.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntax 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:
ListItemSee Also