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 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, bool loadHost ) |
Visual Basic |
---|
Public Shared Sub LoadCultureDropDownList ( list As DropDownList, displayType As CultureDropDownTypes, selectedValue As String, loadHost 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
- loadHost
- Type: System..::..Boolean
Boolean that defines wether or not to load host (ie. all available) locales