localhost image not showing up in asp.net listview -


my web application retrieves location of image database. i'd show image in listview using image control. although database gives correct location of image, reason, web application cannot render image file. (when put same address in image control, image appears.) have clue on matter? in advance. codes in listview are:

        <itemtemplate>             <td runat="server" style="">                 <asp:image id="albumimage" imageurl = '<%# eval("imglocation") %>' runat="server" alternatetext= '<%# eval("imglocation") %>' /><br />                 <asp:label id="albmnamelabel" runat="server" text='<%# eval("albmname") %>' />                 <br />             </td>         </itemtemplate> 

html generated portion of web application is:

           <td style="">                 <img id="listview1_albumimage_0" src="c:\odaiba.png" alt="c:\odaiba.png" /><br />                 <span id="listview1_albmnamelabel_0">tokyo trip</span>                 <br />             </td> 

rather put image @ c:\, urge make images folder in web project , update database refer images relative path: images/odaiba.png.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -