473,385 Members | 2,015 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,385 software developers and data experts.

How would you save a collection in a resource file?

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.


Nov 17 '05 #1
5 1806
serialization?

"Julia" <co********@012.net.il> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
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.

Nov 17 '05 #2
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

"Lloyd Dupont" <net.galador@ld> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
serialization?

"Julia" <co********@012.net.il> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
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.


Nov 17 '05 #3
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,...

"Julia" <co********@012.net.il> wrote in message
news:ed*************@tk2msftngp13.phx.gbl...
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

"Lloyd Dupont" <net.galador@ld> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
serialization?

"Julia" <co********@012.net.il> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
> 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.
>
>
>
>



Nov 17 '05 #4
What about editiong the XML file?!?!
I am just looking for the format that's all!!

Thanks in advance.
"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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,...

"Julia" <co********@012.net.il> wrote in message
news:ed*************@tk2msftngp13.phx.gbl...
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

"Lloyd Dupont" <net.galador@ld> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
serialization?

"Julia" <co********@012.net.il> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
> 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.
>
>
>
>



Nov 17 '05 #5
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.....
"Julia" <co********@012.net.il> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
What about editiong the XML file?!?!
I am just looking for the format that's all!!

Thanks in advance.
"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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,...

"Julia" <co********@012.net.il> wrote in message
news:ed*************@tk2msftngp13.phx.gbl...
> 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
>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:On**************@tk2msftngp13.phx.gbl...
>> serialization?
>>
>> "Julia" <co********@012.net.il> wrote in message
>> news:e6**************@tk2msftngp13.phx.gbl...
>> > 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.
>> >
>> >
>> >
>> >
>>
>>
>
>



Nov 17 '05 #6

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

Similar topics

3
by: Dynamo | last post by:
Hi all I want to save the contents of a textarea within my webform as a text file .txt on my webserver. In addition, I want to save it with the same file name as the next autoincrement number in...
1
by: maya2000 | last post by:
Hello, Below code has a problem to read a data. It seems the non-primitive data are the reason. How can I save this Map into a file, and read it later? Thanks in advance. ...
7
by: Rolf Hemmerling | last post by:
Hello ! Beginner's question: What ist the easiest way to store and save objects in a file generated by a C++ program, by using the "standard C++ library" and/or "Standard Template Library (...
2
by: Paul Hatcher | last post by:
Is it possible to serialize a collection so that the collection itself does not appear e.g. <Document> <Resource> <name>a</name> </Resource> </Document> rather than
1
by: Julia | last post by:
Hi, Is it possible to save ArrayList or other type in a resource file? I need to populate a list box with a predefined options and I would like to save them in a resource file I also don't...
36
by: André | last post by:
Hello, I have a c# application that creates a timer to fire every minute using multithreading. On every minute it calls a Ping class that I made using sockets. It creates a new ping class then...
3
by: Stefano | last post by:
I've a form windows with a lot of textbox controls. How can I do if I have to save all text proprety of this controls in an external file, to reload them in future?
28
by: Goalie_Ca | last post by:
I have been reading (or at least googling) about the potential addition of optional garbage collection to C++0x. There are numerous myths and whatnot with very little detailed information. Will...
158
by: pushpakulkar | last post by:
Hi all, Is garbage collection possible in C++. It doesn't come as part of language support. Is there any specific reason for the same due to the way the language is designed. Or it is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.