Is there a dropdownlist with countries somewhere to make it easy for extranet users to pick one?
Is there a dropdownlist with countries somewhere to make it easy for extranet users to pick one?
Hi Sune
Gui.CultureList("da-DK", "NameOfField") gives you a list of languages and country (Same box you will find in language or frontpage module)
I just provide you with the source so you can make your own changes:
Public Shared Function CultureList(ByVal Selected As String, ByVal Name As String, ByVal enabled As Boolean) As String
Dim output As New StringBuilder
' Displays several properties of the neutral cultures.
output.Append("
output.Append("")
Dim ci As CultureInfo
For Each ci In CultureInfo.GetCultures(CultureTypes.AllCultures)
If ci.Name <> "" And Not ci.IsNeutralCulture Then
output.Append("")
End If
Next ci
output.Append("")
Return output.ToString
End Function
NP wrote:Hi Sune
Gui.CultureList("da-DK", "NameOfField") gives you a list of languages and country (Same box you will find in language or frontpage module)
I just provide you with the source so you can make your own changes:
Public Shared Function CultureList(ByVal Selected As String, ByVal Name As String, ByVal enabled As Boolean) As String
Dim output As New StringBuilder
' Displays several properties of the neutral cultures.
output.Append("")
Return output.ToString
End Function
- Thanks
How is this handled in the new Layout and Design?
You must be logged in to post in the forum