Storing/Displaying images

P

Paulo

Hi, how are you ? Can you send me any examples about storing images on bd
and showing them on gridview? Im using VS2005 asp.net 2.0 C#

Thanks a lot!
 
S

Scott Mitchell [MVP]

Paulo said:
Hi, how are you ? Can you send me any examples about storing images on bd
and showing them on gridview? Im using VS2005 asp.net 2.0 C#


Hi Paulo. Check out this article:

Storing Binary Files Directly in the Database Using ASP.NET 2.0
http://aspnet.4guysfromrolla.com/articles/120606-1.aspx

It provides a complete, working demo at the end of the article that
shows how to save images in the database. The demo does not use a
GridView to show the images, but it does use a FormView. In any event,
for a GridView (or DetailsView), you could use either a TemplateField
and use the techniques shown in the demo or use an ImageField instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top