具有动态数据的多语言下拉列表。 [英] Multilingual Dropdownlist with dynamic data.

查看:67
本文介绍了具有动态数据的多语言下拉列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Every One,



我在Asp.Net4.0的Web应用程序中工作。我在我的应用程序中使用资源文件实现了多语言。我申请了静态标签的文字。它工作正常,但现在我的要求是我用数据库中的数据填充下拉列表。我在运行时提交下拉列表。



那么我如何在下拉列表的值上应用多语言。



请给我任何想法,链接或解决方案。

Hello Every One,

I am working in web application in Asp.Net4.0. I have implemented Multilingual using Resource Files in my application. I have applied on static label's Text. It is working fine but Now my Requirement is that I am filling drop down lists with data from database. I am filing dropdownlist at run time.

So How can i apply multilingual on dropdownlists's values.

Please give me any idea, link or solution.

推荐答案

http://techtt.org /post/2012/10/19/Multilingual-website-using-aspnet.aspx



关注下拉菜单



asp:DropDownList ID =" ddlLanguage" RUNAT = QUOT;服务器" AutoPostBack =" True"
onselectedindexchanged =" ddlLanguage_SelectedIndexChanged"

meta:resourcekey =" ddlLanguageResource1">

< asp: ListItem Value =" en-us"> English< / asp:ListItem>

< asp:ListItem Value =" fr-FR"> French< / asp:ListItem>

< / asp:DropDownList>< br />







留在链接下载并通过,如果不明白回来



概念取决于特定国家的文化和UIculture



因此我们必须为每种语言/国家创建资源,并且在选择语言时,下拉数据将根据资源文件改变





--- Aatif ---
http://techtt.org/post/2012/10/19/Multilingual-website-using-aspnet.aspx

careate a drop down

asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlLanguage_SelectedIndexChanged"
meta:resourcekey="ddlLanguageResource1">
<asp:ListItem Value="en-us">English</asp:ListItem>
<asp:ListItem Value="fr-FR">French</asp:ListItem>
</asp:DropDownList><br />



remain is given in the link download and go through if not understand come back

concept depends on culture and UIculture of the particular country

so we have to create resource for every language/country and on the selection of the language drop down data will changed accordig to the resource file


---Aatif---


这篇关于具有动态数据的多语言下拉列表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆