开发者

use of Explicit localization on the grid view of asp.net application?

how to provide Explicit Localization o开发者_开发百科n the GridView's Headertext of Asp.net application?


I have not used web forms in a while, so forgive me if this is a little rusty, but as I recall, it is no different than accessing a resource anywhere else in the .aspx page.

BoundField:

<asp:BoundField datafield="Date" HeaderText="<%$ Resources: Strings, Grid_Header_Date %>" />

TemplateField:

<asp:TemplateField HeaderText="<%$ Resources: Strings, Grid_Header_Date %>">
    <ItemTemplate>
        ...
    <ItemTemplate>
</asp:TemplateField>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜