如何在Button上的Listview外使用Listview值 [英] How to Use Listview Values outside the Listview on a Button
本文介绍了如何在Button上的Listview外使用Listview值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个电子商务网站。
我有一个查询,
当用户将一些产品添加到购物车中,然后他需要登录他的帐户进行Checkout,我在侧边栏中使用列表视图显示用户订单历史目前。
然后按下PayNow按钮,如何将Listview的值发送到Paynow按钮,我将重定向到Paypal付款。
所以,请给我一个完美的付款方式解决方案
I am developing a ecommerce website.
I have a query,
when a user add some products into hos cart, and then he need to login his account for Checkout, i am using a listview in Sidebar to display the User Order History At present.
then On Button Of " PayNow", how i can send values of Listview to the " Paynow" button and i will be redirect to Paypal for payment.
so, please give me a prefect solutions for Payment methods
推荐答案
使用列表视图中每个项目的复选框。
参见示例这里 [ ^ 并点击按钮,遍历检查的所有项目并将其存储在临时存储中,即列表/数组/用户定义的对象等。
现在进行PayPal集成, CodeProject上有一篇非常好的文章,请参阅
PayPal for C#简介 - ASP.NET开发人员 [ ^ ]
-KR
Use checkbox for each items in the listview.
See the example here[^] and on button click, iterate through all the items that are checked and store it in a temporary storage, i.e List/ Array/ User defined object etc.
And now for the PayPal integration, a very nice article is given on CodeProject, see
Introduction to PayPal for C# - ASP.NET developers[^]
-KR
这篇关于如何在Button上的Listview外使用Listview值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文