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>
精彩评论