473,770 Members | 5,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1822
serialization?

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

"Julia" <co********@012 .net.il> wrote in message
news:e6******** ******@tk2msftn gp13.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******** *****@tk2msftng p13.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******** ******@tk2msftn gp13.phx.gbl...
serialization?

"Julia" <co********@012 .net.il> wrote in message
news:e6******** ******@tk2msftn gp13.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******** *******@TK2MSFT NGP12.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******** *****@tk2msftng p13.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******** ******@tk2msftn gp13.phx.gbl...
serialization?

"Julia" <co********@012 .net.il> wrote in message
news:e6******** ******@tk2msftn gp13.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.GetMan ifestResourceSt ream())
and write your ownn res manager implementing the same fallback
mechanism.....
"Julia" <co********@012 .net.il> wrote in message
news:%2******** ********@tk2msf tngp13.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******** *******@TK2MSFT NGP12.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******** *****@tk2msftng p13.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******** ******@tk2msftn gp13.phx.gbl...
>> serialization?
>>
>> "Julia" <co********@012 .net.il> wrote in message
>> news:e6******** ******@tk2msftn gp13.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
11646
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 my sql table.(e.g. If I have 15 records in my table then the next autoincrement number will be 16 when I add a new record and I want the text file to be saved as 16.txt) sadly this is far as I have got cos im not sure how to do either of the...
1
2855
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. //------------------------------------------------------------------------- import java.io.*; import java.util.*;
7
11520
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 ( STL )" ? So I would like to generate some objects ( of different classes ) with a C++ program and would like to make it permanent / persistent, so that
2
1403
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
3570
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 want to use split on a string etc.. Thanks in advance
36
1937
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 sets it to null when it’s done. I noticed every time this class gets created I see the memory keeps getting larger. I think I should add Idisposable to my ping class and dispose of the memory
3
2154
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
3187
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 this work be library based or language based and will it be based on that of managed C++? Then of course there are the finer technical questions raised (especially due to pointer abuse). Is a GC for C++ just a pipe dream or is there a lot of work...
158
7904
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 discouraged due to some specific reason. If someone can give inputs on the same, it will be of great help. Regards, Pushpa
0
9592
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7416
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.