Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 29, 2011 01:44 AM by lindows
Member
168 Points
354 Posts
Aug 21, 2011 09:06 AM|LINK
hi all,
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?
Star
14875 Points
1529 Posts
Microsoft
Aug 23, 2011 08:40 AM|LINK
Hi lindows,
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?
16 Points
20 Posts
Aug 27, 2011 04:45 PM|LINK
Hi,
I had the exact same problem, and ran into your post yesterday - and today we found the solution. It is nicely described here:
http://stackoverflow.com/questions/2140628/sharing-asp-net-resource-files-between-web-applications
This one works - we implemented already.
//Anders
Aug 29, 2011 01:44 AM|LINK
choice! that worked, thanks heaps
lindows
Member
168 Points
354 Posts
reference resources inline
Aug 21, 2011 09:06 AM|LINK
hi all,
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)
but i can reference it on code...
any one have an idea?
Yanping Wang...
Star
14875 Points
1529 Posts
Microsoft
Re: reference resources inline
Aug 23, 2011 08:40 AM|LINK
Hi lindows,
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.
Feedback to us
Develop and promote your apps in Windows Store
lindows
Member
168 Points
354 Posts
Re: reference resources inline
Aug 23, 2011 08:48 PM|LINK
tried, no go
the question is why does it work on code block but not inline?
vaerge
Member
16 Points
20 Posts
Re: reference resources inline
Aug 27, 2011 04:45 PM|LINK
Hi,
I had the exact same problem, and ran into your post yesterday - and today we found the solution. It is nicely described here:
http://stackoverflow.com/questions/2140628/sharing-asp-net-resource-files-between-web-applications
This one works - we implemented already.
//Anders
lindows
Member
168 Points
354 Posts
Re: reference resources inline
Aug 29, 2011 01:44 AM|LINK
choice! that worked, thanks heaps