Link to home
Start Free TrialLog in
Avatar of riskyricky1972
riskyricky1972

asked on

asp.net c# usercontrols

I have developed website that have mulitple steps to ask some questions.
for examples, step 1 asked for billing or shipping address
step 2 enter the address
step 3 review
step 4 insert all data into database
my issue is. I may have a lot of the different type of addresses
and how can I take the data such as shipping address, city, state, and zip, and how do i know which type of address?
Avatar of gauravjoshi
gauravjoshi
Flag of United States of America image

Hi,

You could define business entities for each type of address, assuming you have different tables to store address, or you can create one address bussiness object with field 'type' of it.

use object to save and retrive data from the database, using formview control and object data source control

http://msdn2.microsoft.com/en-us/library/aa581783.aspx
follow the above link for formview and object data source  binding
Hope this helps

Gaurav Joshi
Hi
Your data model should be defined in a way to support this operation.

You can define one Address table and a AddressType look up table.  In the ASP .NET page allow the user to select the address type.  

Is there any difficulty of allowing the user to select address type?  It looks that you need to detect the address type based on the values of addres data.

Sanjeewa Jayasinghe
ASKER CERTIFIED SOLUTION
Avatar of Tom Knowlton
Tom Knowlton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.