LoadCultureDropDownList loads a DropDownList with the list of supported cultures based on the languages defined in the supported locales file, for the current portal
Assembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static void LoadCultureDropDownList( DropDownList list, CultureDropDownTypes displayType, string selectedValue ) |
Visual Basic |
---|
Public Shared Sub LoadCultureDropDownList ( list As DropDownList, displayType As CultureDropDownTypes, selectedValue As String ) |
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