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.
Saineshwar BageriRank #115 · 19.6K reputationPosted Sep 26, 2014, 7:30 PM EDT
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
shubham bhardwaj12 reputationPosted Sep 26, 2014, 9:22 PM EDT
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 BageriRank #115 · 19.6K reputationPosted Sep 26, 2014, 10:46 PM EDT
shubham bhardwaj12 reputationPosted Sep 26, 2014, 10:50 PM EDT
Saineshwar BageriRank #115 · 19.6K reputationPosted Sep 27, 2014, 9:36 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts