U bent hierBloggggg > Dotnetnuke stuff
 Country selector in DNN

In your ascx page register:

<%@ Register TagPrefix="dnn" Assembly="CountryListBox" Namespace="DotNetNuke.UI.WebControls" %>

In your code add:

<dnn:countrylistbox id="ddlShopCountry" runat="server" cssclass="NormalTextBox" datatextfield="Text" datavaluefield="Value" width="300px"></dnn:countrylistbox>

And fill it from the codefile using:

Dim ctlEntry As New ListController
Dim entryCollection As ListEntryInfoCollection = ctlEntry.GetListEntryInfoCollection("Country")

ddlShopCountry.DataSource = entryCollection
ddlShopCountry.DataBind()

 


Terug