I want to display the images in gridveiw with particular id. Images are saved in server folder and I saved their names in MySql database....
someone please help me......................
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.
Saineshwar BageriPosted Sep 27, 2014, 1:36 PM
shubham bhardwajPosted Sep 27, 2014, 2:50 AM
Saineshwar BageriPosted Sep 27, 2014, 2:46 AM
shubham bhardwajPosted Sep 27, 2014, 1:22 AM
But still i am having problem. because i m using Linq to bind the grid veiw data,
and if i am passing image name then it is showing this name on grid that i don't want to show
see image of grid view below....
and here is my design page code
Saineshwar BageriPosted Sep 26, 2014, 11:30 PM
in that you will have images name.
after that just check your hosted site or localhost site Url.
And check like this Path for your images should be
:- localhost:1380/ ImagesfolderName / ImageName
:- http://www.c-sharpcorner.com/ ImagesfolderName / ImageName ( hosted site )
Or from Sql while bring path just concate path to your Image Name
DECLARE @ImageName varchar(50)
DECLARE @imagepath varchar(50)
SET @ImageName ='Image.jpeg'
set @imagepath = 'http://www.c-sharpcorner.com/' + @ImageName
SELECT @imagepath
Mark as answer if i helped you