How would you save a collection in a resource file?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hi,
I need to localize my asp.net application and I would like to populate drop
down box from a resource file
I see that ms localization tool kit can save lists in a resource file
but I don't want to use it

How would you save a collection in a resource file?



Thanks in advance.
 
Yes of course,it can be done like this
but doesn't VS.NET studio support editing resource file which contains a
list?
I only found samples which show how to store string and simple types
i dont want to write code which alter my resource file.

Thanks
 
mmhh.....
I guess it's related to designers...

If you find a tutorial which explain you how to add a custom designer for
your component (one which edit collection) you could then a set of attribute
to your collection type and then use it in the resource editor.


I know there is some tutorial about that,...
 
What about editiong the XML file?!?!
I am just looking for the format that's all!!

Thanks in advance.
 
oh then!......

now that you ask, I think..... that's an excellent question!

uh..... in fact I can't remember what a resource file looks like in 1.x.....

In 2.0 the .resx designer lets you embed a text file! (and you could
separate your your value by a line return)
I knwo in 1.x you've got both .resources & .resx, try .resx.....

otherwise, in the worst case.......
you could embed them in the file type of your choice as an embeded resource
(think assembly.GetManifestResourceStream())
and write your ownn res manager implementing the same fallback
mechanism.....
 
Back
Top