Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Any Umbraco wizards have a suggestion for localizing an <asp:DropDownList... control using the Umbraco Dictionary?
I see this snippet is the pattern for file-based localization, but was looking for a more Umbraco'ish approach:
protected override void OnPreRender(EventArgs e){ ResourceManager rm = ResourceManager.CreateFileBasedResourceManager("Country", Server.MapPath("~/Resources") + Path.DirectorySeparatorChar, null); ResourceSet rs = rm.GetResourceSet(CultureInfo.CurrentCulture, false, true); CountryList.DataSource = rs; CountryList.DataTextField = "Value"; CountryList.DataValueField = "Key"; CountryList.DataBind();}
Thank you
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Localize a Drop Down List in User Control using Dictionary
Any Umbraco wizards have a suggestion for localizing an <asp:DropDownList... control using the Umbraco Dictionary?
I see this snippet is the pattern for file-based localization, but was looking for a more Umbraco'ish approach:
Thank you
is working on a reply...