Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Using a UNC path in ImageURL

$
0
0

I am using the following in an itemtemplate:

<asp:Image ID="Image1" runat="server" ImageUrl='<%# String.Format("\\servername\foldername\foldername\{0}.jpg", Eval("FacilityID"))%>' Width="250px" Height="200px" />
                         

The image does not show up on the page.  When I click on view Image, I get the following link http://www.website.com/\\servername\foldername\foldername\filename.jpg which obviously doesn't work.  If I take out the http part it works.  How can I get this to work?  This is an internal website.  Thanks!


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>