Select Method (String, IEnumerable, GetIdTitle, Object, Boolean)

HttpServer.dll

Creates a select list with the values in a collection.

Namespace:  HttpServer.Helpers
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static string Select(
	string name,
	IEnumerable collection,
	GetIdTitle getIdTitle,
	Object selectedValue,
	bool firstEmpty
)
Visual Basic (Declaration)
Public Shared Function Select ( _
	name As String, _
	collection As IEnumerable, _
	getIdTitle As GetIdTitle, _
	selectedValue As Object, _
	firstEmpty As Boolean _
) As String
Visual C++
public:
static String^ Select(
	String^ name, 
	IEnumerable^ collection, 
	GetIdTitle^ getIdTitle, 
	Object^ selectedValue, 
	bool firstEmpty
)

Parameters

name
Type: System..::.String
Name of the SELECT-tag
collection
Type: System.Collections..::.IEnumerable
collection used to generate options.
getIdTitle
Type: HttpServer.Helpers..::.GetIdTitle
delegate used to return id and title from objects.
selectedValue
Type: System..::.Object
value that should be marked as selected.
firstEmpty
Type: System..::.Boolean
First row should contain an empty value.

Return Value

string containtain a SELECT-tag.

See Also