Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 29, 2011 01:44 AM by lindows
Aug 21, 2011 09:06 AM|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 08:40 AM|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 08:48 PM|LINK
tried, no go
the question is why does it work on code block but not inline?
Aug 27, 2011 04:45 PM|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 01:44 AM|LINK
choice! that worked, thanks heaps