LoadCultureDropDownList loads a DropDownList with the list of supported cultures based on the languages defined in the supported locales file
This overload allows us to filter a language from the dropdown. To do so pass a language code to the Filter parameter
This overload allows us to display all installed languages. To do so, pass the value True to the Host parameter
Assembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static void LoadCultureDropDownList( DropDownList list, CultureDropDownTypes displayType, string selectedValue, string filter, bool host ) |
Visual Basic |
---|
Public Shared Sub LoadCultureDropDownList ( list As DropDownList, displayType As CultureDropDownTypes, selectedValue As String, filter As String, host As Boolean ) |
Parameters
- list
- Type: System.Web.UI.WebControls..::..DropDownList
DropDownList to load
- displayType
- Type: DotNetNuke.Services.Localization..::..CultureDropDownTypes
Format of the culture to display. Must be one the CultureDropDownTypes values. CultureDropDownTypes for list of allowable values
- selectedValue
- Type: System..::..String
Name of the default culture to select
- filter
- Type: System..::..String
String value that allows for filtering out a specific language
- host
- Type: System..::..Boolean
Boolean that defines wether or not to load host (ie. all available) locales