By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,011 Members | 1,000 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,011 IT Pros & Developers. It's quick & easy.

How would you save a collection in a resource file?

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.