Why is the content inside the placeholder rendered? This code results in: "Object reference not set to an instance of an object." For the MainGuard object!
How should one handle this situation?
<asp:PlaceHolder runat="server" Visible="<%# Model.MainGuard != null %>">
<asp:Image runat="server" ImageUrl="<%# Model.MainGuard.Image.RenderImage() %>" Height="50" />
<%# Model.MainGuard.Name %>
</asp:PlaceHolder>