Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Localising a grid view

Status
Not open for further replies.

Jacqui1811

Programmer
Jul 8, 2002
100
SG
I am using a global resource file and want to localise the text for the hyperlinks and the databound fields. It doesn't seem to be finding them though.

<asp:GridView ID="blogsGridView" runat="server" AllowPaging="True" AllowSorting="False"
AutoGenerateColumns="False" DataKeyNames="id" PageSize="25" Visible="false"
CssClass="tableText" OnPageIndexChanging="blogsGridView_PageIndexChanging">
<HeaderStyle CssClass="tableHeaderText" />
<Columns>
<asp:BoundField DataField="name" HeaderText="<%$ Resources:Resource, BlogName %>"
SortExpression="name" />
<asp:HyperLinkField Text="<%$ Resources:Resource, BlogView %>"
DataNavigateUrlFormatString="~Blogs/Blog.aspx?blogid"
DataNavigateUrlFields="id"/>
</Columns>
</asp:GridView>
Blogview and BlogName are both in my resource.resx and the two language files resource.en-GB.resx and resource.es-ES.resx

Can anybody help me.
Jacqui.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top