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.
精彩评论