473,383 Members | 1,868 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,383 software developers and data experts.

How to store multiple mailing addresses

I want to store multiple mailaddress like home address and shipping address
Sometimes addresses will be more than two. I am thinking about storing the
details as a dictionary object. Any other suggestions.

Thanks
Jay
Aug 8 '05 #1
5 1699
Store where, for how long and for what purpose ?

Tim

--
Tim Williams
Palo Alto, CA
"Jay Villa" <ja******@community.nospam> wrote in message
news:u2**************@TK2MSFTNGP12.phx.gbl...
I want to store multiple mailaddress like home address and shipping address Sometimes addresses will be more than two. I am thinking about storing the details as a dictionary object. Any other suggestions.

Thanks
Jay

Aug 8 '05 #2
Storing them where? Typically, data is stored in a database, but if you're
talking about dictionary objects, can you put this in context?

Ray at work

"Jay Villa" <ja******@community.nospam> wrote in message
news:u2**************@TK2MSFTNGP12.phx.gbl...
I want to store multiple mailaddress like home address and shipping address Sometimes addresses will be more than two. I am thinking about storing the details as a dictionary object. Any other suggestions.

Thanks
Jay

Aug 8 '05 #3
When I said storing it means, I have asp pages where users will be enter
multiple address on the screen, I have to gather the data(addresses) from
the asp page and finally i should update the database. Hope I am making
sense ....

Any suggestions. Hope I am making clear .....
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:ef**************@TK2MSFTNGP15.phx.gbl...
Storing them where? Typically, data is stored in a database, but if
you're
talking about dictionary objects, can you put this in context?

Ray at work

"Jay Villa" <ja******@community.nospam> wrote in message
news:u2**************@TK2MSFTNGP12.phx.gbl...
I want to store multiple mailaddress like home address and shipping

address
Sometimes addresses will be more than two. I am thinking about storing

the
details as a dictionary object. Any other suggestions.

Thanks
Jay


Aug 9 '05 #4
Jay Villa wrote:
When I said storing it means, I have asp pages where users will be enter
multiple address on the screen, I have to gather the data(addresses) from
the asp page and finally i should update the database. Hope I am making
sense ....

Any suggestions. Hope I am making clear .....


So just create the blanks and gather the info like normal. I guess I'm
failing to see where the difficulty is, specific to gathering multiple
addresses?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Aug 9 '05 #5
> the asp page and finally i should update the database.

Ah, you're using a database! Eureka! Now, what kind? Access, SQL Server,
MySQL, Oracle, dBase, FoxPro, Excel, ...?

Depending on what other information you are storing, the typical design is
something like this:

CREATE TABLE dbo.Customers
(
CustomerID INT PRIMARY KEY,
FirstName VARCHAR(32),
LastName VARCHAR(32),
...
)

CREATE TABLE dbo.CustomerAddresses
(
CustomerID INT NOT NULL FOREIGN KEY
REFERENCES dbo.Customers(CustomerID),
Address1 VARCHAR(64),
Address2 VARCHAR(64),
City VARCHAR(32),
-- State, Zip, Country, Phone
-- implementation depends on location,
-- customer base and requirements
Type TINYINT -- e.g. Home, Work, Primary, etc.
)

I've left other things out, such as indexes and constraints. But basically
this allows you to have customer data stored once, and 0, 1, or multiple
addresses stored for each customer.

A
Aug 9 '05 #6

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

Similar topics

7
by: deko | last post by:
Why is $_SERVER returning multiple IP Addresses? Actually, I'm not sure if it's $_SERVER -- or which if/else statement -- that's the problem, but what I'm getting as a value for $visip looks...
7
by: Philipp H. Mohr | last post by:
Hello, I would like to store multiple dictionaries in a file, if possible one per line. My code currently produces a new dictionary every iteration and passes it on to another peace of code. In...
1
by: james00_c | last post by:
Greetings- I need to pass multiple email addresses to a "sendto" hidden field in a form. I need to do that because "CC" and "BCC" are not an option. One address webmaster@xyz.com would be...
2
by: (Pete Cresswell) | last post by:
For better or worse, I have chosen to implement mailing addresses in a particular application as a separate table. One Person ==> Many Addresses. It is a database for managing school reunions...
1
by: TCB | last post by:
How can I separate multiple email addresses entered in a single textbox, the email addresses are separated by (,) or (;) Thanks
1
by: donet programmer | last post by:
Is there a way to map multiple email addresses, for instance emailadd1@domain.com, emailadd2@domain.com.. etc to one email address emailadd@domain.com such that when an email is sent to emailadd1...
7
by: Pim75 | last post by:
Hello, I want to store multiple records at once in a SQL database with a For..Next instruction like the sample code below: For counter = 0 To 100 Dim dbInsert As New SqlCommand( _ "INSERT...
0
by: krouxsa | last post by:
Hi There people... Please help me with this query. I want to send 1 email to multiple email addresses stored in a database. Will it be possible? I'm using SQL Server 2005 and already set up...
2
by: Paartha | last post by:
Have made a program in which is uses a username or password , but i want a database which will store multiple usernames and passwords. It will also store the data that user enters like in websites. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.