







![]() ![]() |
C# Webserver |
FormHelper..::.Select Method (String, String, IEnumerable, GetIdTitle, Object, Boolean, array<String>[]()[]) |
FormHelper Class See Also Send Feedback |
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, string id, IEnumerable collection, GetIdTitle getIdTitle, Object selectedValue, bool firstEmpty, params string[] htmlAttributes ) |
Visual Basic (Declaration) |
---|
Public Shared Function Select ( _ name As String, _ id As String, _ collection As IEnumerable, _ getIdTitle As GetIdTitle, _ selectedValue As Object, _ firstEmpty As Boolean, _ ParamArray htmlAttributes As String() _ ) As String |
Visual C++ |
---|
public: static String^ Select( String^ name, String^ id, IEnumerable^ collection, GetIdTitle^ getIdTitle, Object^ selectedValue, bool firstEmpty, ... array<String^>^ htmlAttributes ) |
Parameters
- name
- Type: System..::.String
Name of the SELECT-tag
- id
- Type: System..::.String
Id 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.
- htmlAttributes
- Type: array<
System..::.String
>[]()[]
name, value collection of extra html attributes.