title: asp:Image not displaying within an asp:HyperLink
body: <p>I have an asp:Image inside an asp:HyperLink that's not being displayed. Here's the aspx.</p>
  
  <pre><code>&lt;asp:HyperLink ID="hlSubmitSrf" runat="server" Target="_blank"&gt;
      &lt;asp:Image runat="server" ID="imgSrf" /&gt;
  &lt;/asp:HyperLink&gt;      
  </code></pre>
  
  <p>And here's the codebehind. The Page_Init sets the hyperlink text, url, the image url, and the images's alt text.</p>
  
  <pre><code>        if (srf.Count &gt; 0)
          {
              actionText = "View active SRF";
              hlSubmitSRF.Text = actionText;
              hlSubmitSRF.NavigateUrl = "SRF_Submit.aspx?SRF_ID=" + srf[0].Srf_id.ToString();                
              imageUrl = "images/Arrow_Right_Red.png";
          }
          else
          {
              actionText = "Submit SRF";
              hlSubmitSRF.Text = actionText;
              hlSubmitSRF.NavigateUrl = "SRF_Submit.aspx?APPID=" + app.Appid.ToString();                
              imageUrl = "images/Arrow_Right_Green.png";
          }
  
          imgSrf.ImageUrl = imageUrl;
          imgSrf.AlternateText = actionText;
  </code></pre>
  
  <p>If I move the image outside the asp:HyperLink, the image displays, so I know the path works. If I keep it inside the asp:HyperLink, the image doesn't even show up when I view page source.</p>