我有传呼,product.aspx。在这个页面里,我有一个标签,显示的计数产品添加到篮子。我也有viewcart.aspx页面来显示我的购物车项目,并编辑或删除产品。
一切都很好,但是当我从viewcart.aspx中删除一个产品时,我想减少product.aspx上的标签值。我该怎么做呢?
我使用这个jQuery在模式弹出窗口中显示viewcart.aspx:http://deseloper.org/examples/simple-modal-redux/
此外,我还尝试使用
Label lbl = (Label)this.PreviousPage.FindControl("countlbl");
我该如何解决这个问题?
发布于 2011-06-04 20:47:48
在viewcart.aspx页面中,您可以添加一些在关闭时(即在onUnload事件上)触发的jQuery:
$(window).unload(function() {
window.opener.$("#product_count_label").html("new count of products");
});https://stackoverflow.com/questions/6236780
复制相似问题