By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,264 Members | 1,743 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,264 IT Pros & Developers. It's quick & easy.

Storing/Displaying images

P: n/a
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!
Aug 29 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
What's a bd?db? for database? (not mocking you just trying to figure out
your request)


http://www.gridviewguy.com/ArticleDe...?articleID=207
Do you have relative paths, or the images ~in~ the database?

http://www.gridviewguy.com/ArticleDe...?articleID=166

"Paulo" <pr*****@uol.com.brwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
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!

Aug 29 '07 #2

P: n/a
Paulo wrote:
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.
--

Scott Mitchell [ASP.NET MVP]
mi******@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell
Aug 29 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.