作者:sanyyy | 来源:互联网 | 2023-09-17 20:45
Ihavekindaofashoppingpage,with2differentGridViews:gridProductsandgridCart.gridProducts
I have kinda of a shopping page, with 2 different GridViews: gridProducts and gridCart. gridProducts is where I have my products listed, and I have a button in each line called "Add to cart". When this button is clicked, I just add this product to gridCart. Is there any way to use Update Panel to stop the post backs from refreshing the page everytime I click a button? And also, can I set focus on my gridCart after I click "Add to cart"? Thanks in advance!
我有一个购物页面,有两个不同的GridView:gridProducts和gridCart。 gridProducts是我列出我的产品的地方,每行都有一个名为“添加到购物车”的按钮。单击此按钮时,我只是将此产品添加到gridCart。有没有办法使用更新面板每次单击按钮时停止回发页面刷新页面?而且,点击“添加到购物车”后,我可以将注意力集中在我的gridCart上吗?提前致谢!
1 个解决方案