Click or drag to resize
ControlsHelperGetDropDownListSource Method
Returns dataset with columns Text and Value for a dropdown list source. If resource prefix is defined, text is resolved as resource string "[prefix].value"

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax
C#
public static List<ListItem> GetDropDownListSource(
	IEnumerable<string> items,
	string resourcePrefix = null
)

Parameters

items
Type: System.Collections.GenericIEnumerableString
resourcePrefix (Optional)
Type: SystemString

Return Value

Type: ListListItem
See Also