I have kind of a wierd problem... I have seven pages that share a Master Page; six of the seven pages work fine. However, one of the seven pages does not display the banner image. I have enclosed snippets of the pages below.
First is the top of the Master Page, followed by a snippet of View Source of a working page and a snippet of View Source from the broken page:
<!-- Master Page --><%@ Master Language="VB" AutoEventWireup="false" CodeFile="reports.master.vb" Inherits="Site" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head runat="server"><title></title><link rel="SHORTCUT ICON" href="images/favico2.ico"/><link href="site.css" rel="stylesheet" type="text/css" /><asp:ContentPlaceHolder ID="HeadContent" runat="server"></asp:ContentPlaceHolder></head><body style="background-color: White;"><div style="text-align: left; margin: 0px;"><img src="images/tqo-qsa-banner.jpg" alt="TriQuint Operations Quality Systems Applications" /></div><asp:Label runat="server" Text="" ID="debugTable" /><form runat="server"><!-- Working Page --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>MRB Summary Report </title><link rel="SHORTCUT ICON" href="images/favico2.ico" /><link href="site.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="scripts/dateselected.js" ></script></head><body style="background-color: White;"><div style="text-align: left; margin: 0px;"><img src="images/qsa-banner.jpg" alt="TriQuint Operations Quality Systems Applications" /></div><span id="debugTable"></span><form method="post" action="" id="ctl01"><!-- Broken Page --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>Issue Tracker</title><link rel="SHORTCUT ICON" href="../images/favico2.ico" /><link href="../site.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="scripts/dateselected.js" ></script></head><body style="background-color: White;"><div style="text-align: left; margin: 0px;"><img src="images/qsa-banner.jpg" alt="TriQuint Operations Quality Systems Applications" /></div><span id="debugTable"></span><form method="post" action="" id="ctl01">
The difference between the two View Source snippets is that the CSS and SHORTCUT ICON links have a "../" prefix in the URL on the broken page -- although both are working fine so the "../" must be needed. Here are snippets of the Markup from the two pages:
<!-- Working Page --><%@ Page Title="MRB Summary Report" Language="VB" MasterPageFile="~/reports.master" AutoEventWireup="false" CodeFile="mrb.aspx.vb" Inherits="mrb" %><asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"><script type="text/javascript" src="scripts/dateselected.js" ></script> </asp:Content><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"><h2>MRB Summary Report </h2><!-- Broken Page --><%@ Page Title="Q & R: Issue Tracker" Language="VB" MasterPageFile="~/reports.master" AutoEventWireup="false" CodeFile="issue-tracker.aspx.vb" Inherits="issue_tracker" %><asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"><script type="text/javascript" src="scripts/dateselected.js" ></script> </asp:Content><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"><h2>Issue Tracker</h2>
I am unable to see any difference in the markup between these pages that would cause the banner to not display. Displaying Server.MapPath in both pages provides the same result. Further complicating things, is that the pages display correctly fron the VS2010 Web Server; the problem occurs when published to IIS (7.5).
Any help or suggestions would be greatly appreciated!