将数据从网格保存到数据库 [英] saving the data from the grid to database

查看:152
本文介绍了将数据从网格保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网格中有一些数据,我想将其保存在数据库中.

说我们在网格中有一些值,例如数量,产品,价格,总计,我们想将其保存到数据库中.

更重要的是,我在围带之外有一个标签,我也想将其保存到数据库中..

我不知道我该做些什么.我正在为购物车结帐系统.我这样做是为了保存订单表和总金额.

总金额在网格外部下方的标签中.

我想将整个网格和标签中的总量保存在数据库中网格外的标签中.
请协助我获得最好的服务.请寄给我上面的编码示例

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

推荐答案

hi,
如果您使用的是Google,则将获得许多示例,以供参考,您可以在下面查看这些示例
http://msdn.microsoft.com/en-us/library/ms972948.aspx [ ^ ]
http://csharpdotnetfreak.blogspot.com/2009/06/gridview-objectdatasource-insert- update.html [ ^ ]
希望这会有所帮助.

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.


我认为以下两个链接可能会对您有所帮助,

将datagrid值保存到SQL数据库C# [将datagrid值保存到SQL数据库C# [
I think following two links might help you,

Save datagrid values to SQL database C#[^]

Save datagrid values to SQL database C#[^]

:)


如果您在Google上搜索".net购物车示例",则会看到52,700,000次点击.您看过其中任何一个吗?
If you search for ".net shopping cart examples" on Google you will see 52,700,000 hits. Have you looked at any of these?


这篇关于将数据从网格保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆