如何将购物车中的物品绑定到购物车中 [英] how to bind shopping cart items in cart box

查看:73
本文介绍了如何将购物车中的物品绑定到购物车中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我希望每次用户单击购物车框应相应显示购物车商品的特定商品时都绑定购物车商品..请帮助我

Hi,

i want to bind the shopping cart items each time when user clicks on the particular item that cart box should show the cart items accordingly..please help me

推荐答案

您好,

根据您的问题,我的理解是:
您有一个包含商品的网页,每个商品都有一个添加到购物车"按钮(或可以单击商品本身添加到购物车中).
并且您需要将此项目的详细信息(ItemName,ID,价格等)添加到网格中...


为此,
首先需要一个数据表,当用户单击项目时,必须将所需的详细信息添加到DataTable中.
最后,将数据表设置为Gridview数据源

如果您仍然有疑问,可以使用以下视频进行开发:

http://www.youtube.com/watch?v=GtE4LAOnaGs [
Hi,

As per your question, My understanding is:
You have a web page with items and each items have a button "Add to cart"(or Item itself is clickable to add in Cart).
and you need to add this item details (ItemName, ID, Price etc.) in to a grid...


For this,
you first need a datatable, and when user clicks on item, you have to add the details (that you want) in to DataTable.
Finally, Set the Datatable as Gridview DataSource

And If you still have some doubt, then you can Develop using following Video:

http://www.youtube.com/watch?v=GtE4LAOnaGs[^]


再次引用可能对您有帮助:

http://www.dotnetspider.com/resources/36228-Shopping-Cart.aspx [ ^ ]
Refer it once may help you:

http://www.dotnetspider.com/resources/36228-Shopping-Cart.aspx[^]


这篇关于如何将购物车中的物品绑定到购物车中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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