I am trying to set the ImageUrl using the following code...
<asp:Image ID="brokenImage" runat="server" AlternateText="Coded path" ImageUrl='~/headerImages/<%= getImage(Request.QueryString["Id"]) %>'/>
Eliminating the opening tag and viewing the browser ouput alongside an image tag that is explicitly written produces the following results....
asp:Image ID="brokenImage" runat="server" AlternateText="Coded path" ImageUrl='~/headerImages/images (3).jpg' />
asp:Image ID="workingImage" runat="server" AlternateText="Explicit Path" ImageUrl="~/headerImages/images (3).jpg" />
Why is the first image not displaying but the second is? How can I pass a parameter to the code behind and set the url?
asp:Imagetags then something much more fundamental is broken here. That would indicate that your web server isn't doing server-side ASP.NET processing.