Display Data and images in gridview from sqlserver

Posted by Sudhak under ASP.NET on 5/28/2010 | Views : 4086 | Status : [Member] | Replies : 2
Hi,

I need to display data which consists of 2 varchar columns an image from SQLSERVER database. The data is from multiple tables

Please, Any code / articles ?

Thanks
Sudha




Responses

Posted by: Vuyiswamb on: 5/30/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Is your challenge to display an image in a gridview?

Use the Templatefields to do that e.g look at how i used template fields in the following article
http://www.dotnetfunda.com/articles/article731-how-to-consume-other-sites-rss-in-aspnet-.aspx

and you can easily display other fields, though my source is a feed you can easily do this in SQL.

I am not sure why you store images in SQl, it is an expansive thing to do for a web application , what you can do is to store those images locally in your web-server and in sql you can store the path of those images.

Thank you for posting at Dotnefunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Sudhak, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Syedshakeer on: 5/31/2010 [Member] Starter

Up
0
Down
Hi,

Read the below article.
http://www.codeproject.com/KB/database/ImageSaveInDataBase.aspx

Syed Shakeer Hussain

Sudhak, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response