开发者

Localising Radio Buttons in ASP.NET

How do you go about localising radio button items based on strings contained in a global resource file? I have managed to localise labels and buttons by editing the (Expressions).Text property to refer to this global resource file, but I can't seem to be able to do it for radio buttons or开发者_运维知识库 other list-based controls. Do I have to bind them programmatically or is there a better way to do it?


I think your expression is not correct as you have not shown to us. There is difference between Local and global resources when we use..

here is how to Get Global Resources

Text="<%$ Resources:GlobalRes, NameOfKey %>"


With localising list based controls, you best "short stick" option is to bind to the data set in the proper language. I am sure you could create a class derived from the list and control it another way, but massaging the data prior to bind is the quickest method. I don't know of a "better" way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜