内联参考资源 [英] reference resources inline
问题描述
大家好,
我有一个预编译的项目,并将我所有的资源都存储在其中
但由于某些原因,我无法内联引用资源(直接在Webform控件上)
< asp:GridView ID = " runat = "
EmptyDataText = " />
但我可以在代码中引用它...
MyGridView1.EmptyDataText = 全局 .connectx.Resources.UI_language.chat_gv_empty_text
有人有主意吗?
M :)
PS我已经更新了有关如何将其放入服务器控件的文章发布的问题部分,这在第一次发布时并未解决.
资源:global.connectx.Resources.UI_language,chat_gv_empty_text%>"/>
但我可以在代码中引用它...
MyGridView1.EmptyDataText = 全局 .connectx.Resources.UI_language.chat_gv_empty_text
有人有主意吗?
M :)
PS我已经更新了帖子的问题部分,该部分关于如何将其放置在服务器控件中没有在第一次发布中解决.
尝试阅读此 http://msdn.microsoft.com/en-us/library/ms227427.aspx [ ^ ]
>
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?
M:)
PS I''ve updated the question part of ths posting around how to put this in a server control didn''t come through on the first posting.
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?
M:)
PS I''ve updated the question part of ths posting around how to put this in a server control didn''t come through on the first posting.
Try reading through this http://msdn.microsoft.com/en-us/library/ms227427.aspx[^]
这篇关于内联参考资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!