Jacqui1811
Programmer
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.
<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.