<\/script>')

Resource file in aspx syntax "Eval"

<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

0
source share
3 answers
 <a id="btnShowPopup" runat="server" class="thickbox" title='<%$ Resource:Resources, DetailsforTrakNo %>'> View </a> 
0
source

You need to try <% $ Resources: YourResourceTypeName, Key%> syntax to add a global resource expression.

 title='<%$ Resources:Resource, DetailsforTrakNo %>' 
+2
source

you can also use

 Text='<%#Eval(GetLocalResourceObject("gvstrCompanyName").ToString())%>' 
+1
source

All Articles