<asp:TemplateField> <ItemTemplate> <a id="btnShowPopup" runat="server" class="thickbox" title='<%# Eval("DB_TRAK_NO", "Details for Trak No. {0}") %>> View </a> </ItemTemplate> <HeaderStyle VerticalAlign="Middle" /> </asp:TemplateField>
My Global resouce file name is Resource.resx and Resource.zh-CN.resx, the key "Details for Trak No" - "DetailsforTrakNo" in the resource files. How can I push Chinese heroes when the culture is Chinese. I donβt know the syntax for writing the name in the anchor tag .. you can help me with this.
Regards, Abi
<a id="btnShowPopup" runat="server" class="thickbox" title='<%$ Resource:Resources, DetailsforTrakNo %>'> View </a>
You need to try <% $ Resources: YourResourceTypeName, Key%> syntax to add a global resource expression.
title='<%$ Resources:Resource, DetailsforTrakNo %>'
you can also use
Text='<%#Eval(GetLocalResourceObject("gvstrCompanyName").ToString())%>'