0
<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, key for "Details for Trak No" is "DetailsforTrakNo" in resource files. How can I push the Chinese characters when the culture is Chinese. I dont know the syntax to write title in anchor tag.. can you pls help me in this.

Regards, Abhi

Rob
  • 4,927
  • 12
  • 49
  • 54
Tony
  • 141
  • 4
  • 21

3 Answers3

2

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

title='<%$ Resources:Resource, DetailsforTrakNo %>'
KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
1

you can also use

Text='<%#Eval(GetLocalResourceObject("gvstrCompanyName").ToString())%>'
user867198
  • 1,588
  • 3
  • 16
  • 31
0
<a id="btnShowPopup" runat="server" class="thickbox" title='<%$ Resource:Resources, DetailsforTrakNo %>'>
    View
</a>
Carter Medlin
  • 11,857
  • 5
  • 62
  • 68