Binds list control.

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static void BindListControl(
	ListControl ddl,
	IEnumerable coll,
	string textFieldName,
	string valueFieldName,
	bool noPreference,
	string preferenceValue
)
Visual Basic
Public Shared Sub BindListControl ( 
	ddl As ListControl,
	coll As IEnumerable,
	textFieldName As String,
	valueFieldName As String,
	noPreference As Boolean,
	preferenceValue As String
)
Visual C++
public:
static void BindListControl(
	ListControl^ ddl, 
	IEnumerable^ coll, 
	String^ textFieldName, 
	String^ valueFieldName, 
	bool noPreference, 
	String^ preferenceValue
)
F#
static member BindListControl : 
        ddl : ListControl * 
        coll : IEnumerable * 
        textFieldName : string * 
        valueFieldName : string * 
        noPreference : bool * 
        preferenceValue : string -> unit 

Parameters

ddl
Type: System.Web.UI.WebControls..::..ListControl
List control
coll
Type: System.Collections..::..IEnumerable
Datasource collection
textFieldName
Type: System..::..String
Data text field name
valueFieldName
Type: System..::..String
Data value field name
noPreference
Type: System..::..Boolean
Set to True if No preference is needed (Value = Guid.Empty)
preferenceValue
Type: System..::..String
No preference Text

See Also