Developer forum

Forum » Development » Country dropdown

Country dropdown


Reply

 


Is there a dropdownlist with countries somewhere to make it easy for extranet users to pick one?


Replies

 
Nicolai Høeg Pedersen
Reply

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

 
Reply
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


 
Anders Ebdrup
Reply

How is this handled in the new Layout and Design?

 

You must be logged in to post in the forum