如何从chield页面更新母版页,chield页面包含更新面板 [英] How To Update master page from chield page,whe chield page contain a update panel
问题描述
请访问此链接 http://beta.countryonwheels.com/ [< a href =http://beta.countryonwheels.com/target =_ blanktitle =新窗口> ^ ]
贝娄标题菜单中有一个标签,其中包含 - >购物车:(显示购物车)。并且它包含购物车项目计数(母版页中的此标签)。现在我不使用更新面板用于子页面bcoz如果我在子页面中使用更新面板,则此标签不会更新。 br />
Plz给我一个出路,所以,我可以在子页面中使用更新面板,并在主页面中添加此标签更新后的每个项目。
Hi,
go to this link http://beta.countryonwheels.com/[^]
bellow header menu there is a label which contain->Shopping Cart: ( Show Cart ).and its contain cart item count(This label in master page).now i not use update panel for child page bcoz this label is not update if i use update panel in child page.
Plz give me a way out so ,i can use update panel in child page and and after add every item this label update in master page.
推荐答案
我认为它会对你有所帮助
http://msdn.microsoft.com/en-us/library/xxwa0ff0%28v=vs.100%29.aspx [ ^ ]
你可以所以使用这个:
标签shppingCart =(标签)Master.FindControl(cart1);
shppingCart.Text =你的愿望结果;
I think it will help you
http://msdn.microsoft.com/en-us/library/xxwa0ff0%28v=vs.100%29.aspx[^]
you can also use this:
Label shppingCart = (Label)Master.FindControl("cart1");
shppingCart.Text="your desire result";
这篇关于如何从chield页面更新母版页,chield页面包含更新面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!