我想问问是否有办法使用子页面从master.page更新<asp:Image ID="logoImage" runat="server" Width="150px" />。我正在做的是网站的动态徽标。当我在子页面中更改图像时,我也希望更新master.page <asp:Image/>。
<asp:Image ID="logoImage" runat="server" Width="150px" />
<asp:Image/>
我将非常感谢您的帮助!
您可以使用Web User Control解决您的问题,在Google中搜索如何使用母版页和内容页来实现Web用户控件。
Web User Control