Image is not displayed in datalist
I have a datalist and I want images from database I hve bind database to it but images are not displayed plz help somebody...
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 22, 2015, 9:28 PM EDT
are you storing path in database,then check that path
http://www.c-sharpcorner.com/Blogs/13900/
Keertti Raj Thangavelu BabuRank #3,979 · 374 reputationPosted Mar 22, 2015, 9:52 PM EDT
you need store the image in binary format in db.
refer following links..
http://www.dotnetcurry.com/showarticle.aspx?ID=129
http://www.dotnetfox.com/articles/store-and-retrieve-image-from-database-in-Asp-Net-1113.aspx
--------------------------------------------------------------------------------------------
If this answer helps you. Please validate as "Accept answer".
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Mar 22, 2015, 7:48 AM EDT
can you post code of datalist for better understanding problem.....
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 22, 2015, 8:14 PM EDT
open in browser and rightclick on image icon if image not displaying
open or view image then check url
Anjali C64 reputationPosted Mar 22, 2015, 9:04 PM EDT
this is the aspx code:
<%@ Page Title="" Language="C#" MasterPageFile="~/Master1.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="ArtsDeals.Home" %>
id:
Height="486px" Width="335px" />
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 22, 2015, 9:10 PM EDT
you have to debug and check in your datatable or dataset which binding datalist
or run in browser then check path of image in browser
you have to set image name with directory to image url
Anjali C64 reputationPosted Mar 22, 2015, 9:16 PM EDT
i gave the image url and it is working....but i want it to fetch the image from database...