开发者

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

开发者 https://www.devze.com 2023-03-26 11:28 出处:网络
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,

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

精彩评论

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