刷新母版页上的标题 [英] Refresh the header on a master page

查看:107
本文介绍了刷新母版页上的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主页面的标题内预览了购物车。当我将产品发送到购物车时,我希望自动预览商品数量和总数而无需进入购物车。

问题是每次将产品发送到购物车时,我仍然需要在更新此预览之前,再次单击任何随机链接。这意味着我需要某种页面刷新,可以更新购物袋预览。知道我如何直接从发送产品到购物车的按钮点击更新?

I placed a preview of the shopping cart inside the header on the Master Page. When i send a product to the cart, i wish to preview automatically the number of items and total without going to the shopping cart.
Problem is each time a sent a product to the cart, i still need a second click on any random link before this preview is updated. Which mean i need some kind of page refresh that can update Shopping bag preview. Any idea how i can update direct from the button click that send the product to the cart?

推荐答案

通过使用JavaScript,你可以激活你的预览区域母版页。
By using a JavaScript you can activate your "preview" area from your master page.


当然你可以不刷新整个页面或任何东西。这可以通过使用AJAX来实现。



只需将您的购物车图标/文字放在< asp:UpdatePanel>

一些探索与发展示例给出了

此处 [ ^ ]

其中 [ ^ ]

here [ ^ ]

here [ ^ ]



-KR
Of course you can without refreshing the entire page or anything. This can simply be achieved by using AJAX.

Simply put your cart icon/text on <asp:UpdatePanel>
Some explnanation & examples are given over
here[^]
here[^]
here[^]
here[^]

-KR


参考



ajax-update- master-page-from-content [ ^ ]


这篇关于刷新母版页上的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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