帮助更新母版页 [英] Help with an update masterpage

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

问题描述



我有一个网页,该网页由一个母版页组成,并带有一个由我制作的用户控件(一个图像按钮),该控件具有一个contentplaceholder,其中有一个aspx页面.反过来,此页面也有一个由我制作的用户控件(一个imagebuttons表),每次用户按下该表的某些图像时,它都应该更新imagebutton母版,但是我还没有找到执行此操作的方法,因此母版页在执行imagebutton处理程序(在imagebuttons表中)之前进行了回发,因此imagebutton母版页永远不会更新.

您能帮我做这个吗?

提前谢谢您

Hi

I have a web page compose with a masterpage, with a usercontrol made by me (an imagebutton), which has a contentplaceholder where there is a aspx page. This page, in turn, has a usercontrol made by me too (an imagebuttons table) which each time the user pushes some image of this table it should update the imagebutton masterpage, but i haven't found the way to do this, so the masterpage made a postback before imagebutton handler executes (of the imagebuttons table), so the imagebutton masterpage never updates.

Can you help me to do this? if it's possible?

Thank you in advance

推荐答案

您可以使用Page.Master属性访问母版页.然后,在母版页上公开imagebutton的状态,并在Page_Load事件中进行设置.
You can access your master page by using the Page.Master property. Then, public a state of the imagebutton on the masterpage and set it in the Page_Load event.


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

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