如何在运行时从资源文件访问值 [英] how to access value from resource file at runtime

查看:80
本文介绍了如何在运行时从资源文件访问值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个应用程序,其中使用
从资源文件访问值 GetGlobalResourceObject.using GetGlobalResourceObject我一次只能访问一个值.我想访问所有值并在运行时分配不同的标签.GetGlobalResourceObject带有两个参数,一个是classkey,另一个是resoursekey如何在运行时更改资源密钥.
请帮帮我.
谢谢.

解决方案

以下链接将为您提供帮助
以编程方式检索资源值
ASP.NET网页资源概述
保存和读取resx资源文件中的值


I write one application in which i access value from resource file using
GetGlobalResourceObject.using GetGlobalResourceObject i access only one value at a time.I want access all values & assign different labels at runtime.GetGlobalResourceObject takes two arguments one is classkey & other is resoursekey how to change resourse key at run time.
please help me.
Thanks.

解决方案

Following links will help you
Retrieve Resource Values Programmatically
ASP.NET Web Page Resources Overview
Save and read value from resx resource file


这篇关于如何在运行时从资源文件访问值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆