I have a web form which inherits a master page with various content placeholders. The problem I have is if I put default content in the master page then this content is being displayed even when I override it in a content page.
Master Page (excerpt):
<asp:ContentPlaceHolder ID="rightImages" runat="server">
<img src="<%=ResolveClientUrl("~/images/image_top1.jpg")%>" alt="Front room interior" class="imageblock" />
<img src="<%=ResolveClientUrl("~/images/image_mid1.jpg")%>" alt="Lifestyle shot" class="imageblock" />
<img src="<%=ResolveClientUrl("~/images/image_btm1.jpg")%>" alt="Exterior of a house" class="imageblock" />
</asp:ContentPlaceHolder>
Web form:
<asp:Content ID="Content7" ContentPlaceHolderID="rightImages" Runat="Server">
<img src="<%=ResolveClientUrl("~/images/image_top2.jpg")%>" alt="Front room interior" class="imageblock" />
<img src="<%=ResolveClientUrl("~/images/image_mid2.jpg")%>" alt="Lifestyle shot" class="imageblock" />
<img src="<%=ResolveClientUrl("~/images/image_btm2.jpg")%>" alt="Exterior of a house" class="imageblock" />
</asp:Content>
The only way to see the images in the web form is to comment out the default content in the master page. I must be doing something badly wrong because I couldn't find anyone else on Google who has reported the same problem.
Can anyone please help?
TIA Luke
Senior Software Developer
*Please mark the thread as Resolved if this answers your question*