Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have some data in a grid and i want to save it in the database.

say we have some values such as quantity ,product, price, total in a grid and we want to save it to the database.

more over i have a label outside the gird and i also want to save it to the database too..

i don't know wot i have to do. i am making check out system for shoping cart. i am doing it to save the orders table and total amount.

total amount is in label below outside to grid.

i want to save the whole grid and the total amount in a label omount in a label out side the grid in the database..

kindly assist me for the best snerio. kindly send me for the coding example for above
Posted

hi,
If you google you will get many examples, for reference you can check these samples below
http://msdn.microsoft.com/en-us/library/ms972948.aspx[^]
http://csharpdotnetfreak.blogspot.com/2009/06/gridview-objectdatasource-insert-update.html[^]
Hope this will help.
 
Share this answer
 
Comments
[no name] 5-Jul-11 23:55pm    
Searching google, how original of you
Shahriar Iqbal Chowdhury/Galib 6-Jul-11 2:32am    
at least you can provide some reference, only lecturing in air wont help people
I think following two links might help you,

Save datagrid values to SQL database C#[^]

Save datagrid values to SQL database C#[^]

:)
 
Share this answer
 
If you search for ".net shopping cart examples" on Google you will see 52,700,000 hits. Have you looked at any of these?
 
Share this answer
 
Comments
fjdiewornncalwe 5-Jul-11 23:31pm    
Me thinks someone should have paid better attention in class.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900