473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Find all keys from a specific global resource

Hi...

I'm having some difficulties getting all possible keys from a specific
resource class.
Let's say I have a file named: MyProj.TranslationStrings.resx in my
App_GlobalResources folder

And let's say the .resx file contains two entries:
"status.0" with value "Disabled"
"status.1" with value "Enabled"

status.0 is a resource key and "Disabled" is the value of that key.

I know I can programmatically retrieve values from those resource keys
using:
GetGlobalResourceObject("MyProj.TranslationStrings ", "status.0")

Function returns an string object with the value "Disabled".

.... or I can use the Resources namespace (that's called strong typing,
I think...): Resources.MyProj.TranslationString.status_0 <- this is a
String object with a value "Disabled"

But how do I get all the possible resource keys from that resource
programmatically. I'd like to have a function that would return an
array or something I could iterate.

String[] AllKeys = RetrieveAllResourceKeys( "MyProj.TranslationStrings"
);

Function would have to get all resource keys during run-time from the
assembly and not the .resx file.

Any ideas on how would I implement such function?

Any help would be appreciated, thanks.

Oct 6 '06 #1
0 2405

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
0
by: JezB | last post by:
Given a reference to an Assembly, is there any way to generically scan the assembly for embedded resource files ? And, given such a resource file, is there any way to loop through all the...
2
by: Joey Lee | last post by:
Hi, Microsoft provided some naming conventions for namespace, classes, properties and etc. However I am looking for naming convention for keys in resource files for multiple languages. Any...
6
by: martin | last post by:
Hi, I have noticed that every aspx page that I created (and ascx file) has an assosiated resource file aspx.resx. However what I would like to do is have a single global resource file for the...
2
by: rick | last post by:
Greetings, I am trying to generate an html table that looks through the following xml source and lists links to all of the files (resource-file) and finds the resource-forms that match those...
4
by: Broeisi | last post by:
Hello, I'm trying to write a console based program in C in Linux. I want to use the function keys in my program, but I don;t know how to let the C program know when for exmaple the F1 key is...
0
by: nathanb | last post by:
Hi, I have a slight problem, I have a sight, which has Internationalisaton using the Global Resources folder, and different cultures per language. For example I have a Jobs page, and...
1
by: Rotsey | last post by:
Hi, I am writing app that I want to be able to hit a shortcut key (windows wide) and have it all launch my app and then be able to get the name of the process that was active when the key was...
4
by: coderr | last post by:
Hi all, i have simple question, suppose that we have a ASP.NET web site with lots of local resource files, we can simple delete all of the resource files (resx). Question is, how can remove all of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.