Last post Aug 29, 2011 02:44 AM by lindows
Aug 21, 2011 10:06 AM|lindows|LINK
i have a pre-compiled project, and store all my resources in there
but for some reason i can't reference the resource inline (on the webform control directly)
<asp:GridView ID="MyGridView1" runat="server"
EmptyDataText="<%$ Resources:global.connectx.Resources.UI_language, chat_gv_empty_text %>" />
but i can reference it on code...
MyGridView1.EmptyDataText = global.connectx.Resources.UI_language.chat_gv_empty_text
any one have an idea?
Aug 23, 2011 09:40 AM|Yanping Wang - MSFT|LINK
Have you tried using as follows:
<asp:GridView ID="MyGridView1" runat="server" EmptyDataText="<%$ Resources:UI_language, chat_gv_empty_text %>" />
make sure that the UI_language is the globalization resource file name without .resx extension.
Please let me know if it works, thanks.
Aug 23, 2011 09:48 PM|lindows|LINK
tried, no go
the question is why does it work on code block but not inline?
Aug 27, 2011 05:45 PM|vaerge|LINK
I had the exact same problem, and ran into your post yesterday - and today we found the solution. It is nicely described here:
This one works - we implemented already.
Aug 29, 2011 02:44 AM|lindows|LINK
choice! that worked, thanks heaps