loading Images from direct url--asp:Image

Posted by Jeena under C# on 8/10/2012 | Points: 10 | Views : 2136 | Status : [Member] | Replies : 3
hi

i have a table called Images in that i have the image url of products,which i want to show in a grid..
Images are stored in a shared folder of my server .I can access that as like \\IP\Images\_1.jpg

I have tried with

<asp:Image ID="Image1" runat="server" ImageUrl ='<%#Eval("imageUrl") %>' height="10px" Width="10px" />

but its not working.,but if the image is in project folder itself it will work

please help me!!!




Responses

Posted by: Vikash on: 8/13/2012 [Member] Starter | Points: 25

Up
0
Down
While saving the image path in the database,plz use ~(sign) with the image path.........

Regards,
Vikash Pathak

Jeena, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jeena on: 8/13/2012 [Member] Starter | Points: 25

Up
0
Down
okay,which control i can use for this??

Jeena, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 8/13/2012 [Member] Starter | Points: 25

Up
0
Down
HI..
Refer the below link ..
http://www.dotnetcode.in/2011/06/how-to-store-imageurl-in-database-and.html


Jeena, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response