I would like to parse a QueryString and put the ID value in the ImgUrl path, I try this code:
<asp:Image ID="imgImageNormal" runat="server" ImageUrl='<%# string.Format("ImageHandler.ashx?ID={0}",Request.QueryString["ID"].ToString()) %>'/>
But the result is no. I am not getting an error, but after viewing the page source this is the result for the image:
<img id="ctl00_ContentPlaceHolder1_imgImageNormal" src="" style="border-width:0px;" />
What am I doing wrong?
Wodzu source
share