Pankil Agrawal
Pankil Agrawal

Reputation: 101

Image is not showing when I try to fetch image from Folder (Folder is on web server)

Please check this URL http://pehravnifashion.com/Best-Sherwani.aspx . Everything is okay but Image is not showing to my web page.

My code

<asp:ImageButton ID="ImageButton1" runat="server"  ImageUrl='<%# Eval("ImagePath", "admin/FESTIVALWEAR\\") %>' PostBackUrl='<%# Eval("id", "ProductDetails.aspx?id={0}") %>' />

Please Help me..

Upvotes: 0

Views: 60

Answers (1)

Aby
Aby

Reputation: 1924

The image source you are setting is not right. when I inspected the generated html of your page, the image source is showing up as "admin/FESTIVALWEAR\". You will have to correct it with proper image source. setting it up as ImageUrl='<%# Eval("ImagePath", "admin/FESTIVALWEAR\\") %>' is not correct.

Upvotes: 1

Related Questions