Access global resources in an asp.net control

后端 未结 3 1488
渐次进展
渐次进展 2021-02-18 23:37
meta:resourcekey=\"WizardStep1Resource1\"

This is what I use to access a App_LocalResources.

How do I access a resource in A

3条回答
  •  礼貌的吻别
    2021-02-19 00:13

    You can only access a resource in App_GlobalResources explicitly, using the implicit wiring i.e. meta:resourcekey="WizardStep1Resource1" is applicable only for local resources

    http://msdn.microsoft.com/en-us/library/ms227427.aspx

    To access a resource in App_GlobalResources, use explicit localization like

       <%= (string)GetGlobalResourceObject("ResourcesClass", "WizardStep1Resource1") %>
    

提交回复
热议问题