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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Keertti Raj Thangavelu BabuPosted Mar 23, 2015, 1:52 AM
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".
Khargesh RajputPosted Mar 23, 2015, 1:28 AM
are you storing path in database,then check that path
http://www.c-sharpcorner.com/Blogs/13900/
Anjali CPosted Mar 23, 2015, 1:16 AM
i gave the image url and it is working....but i want it to fetch the image from database...
Khargesh RajputPosted Mar 23, 2015, 1:10 AM
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 CPosted Mar 23, 2015, 1:04 AM
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 RajputPosted Mar 23, 2015, 12:14 AM
open in browser and rightclick on image icon if image not displaying
open or view image then check url
Pankaj Kumar ChoudharyPosted Mar 22, 2015, 11:48 AM
can you post code of datalist for better understanding problem.....