如何在不刷新页面的情况下更新每种产品的购物车 [英] how to update the cart on each and every selection of products without page refresh

查看:90
本文介绍了如何在不刷新页面的情况下更新每种产品的购物车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在没有页面刷新的情况下更新每种产品的购物车

Hi
how to update the cart on each and every selection of products without page refresh

推荐答案

了解有关Web方法的信息,您还可以搜索Java脚本,Jason或j-query函数传递新选定项目的ID并使用客户端将其添加到您的列表中,这并不难....

还有另一种方法:为控件(单选按钮或复选框)设置auto postback = false,然后当用户完成操作时,他必须单击特定的按钮(如保存",完成"),然后单击该按钮进行foreach循环并收集选定的ID,然后将其保存在数据库中.问候
read about web methods also you can search for java script , Jason or j-query function that pass the ID of the new selected item and add it to your list using client side it is not hard ....

also you have another way: set the auto postback= false for your controls (radiobuttons or chechbox) then when the user finished he has to click a specific button like (Save, Done) when he click this button do a foreach loop and collect the selected IDs and then save them in your DB. regards


这篇关于如何在不刷新页面的情况下更新每种产品的购物车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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