Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 25th, 2005, 09:09 AM
Registered User
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Gridview & DetailsView Database Image Issue

Hi there

I got problem to view a database image with GRIDVIEW and DETAILSVIEW Controls. I using particullarly Northwind database from emaployees table to reteive the photos (Photot Field) but it never worked, it always gives me red x in the photo frame when i browse it. The way i did i dropped both controls, bind them with sqldatasource add column with imgfield which should show the database image.i tried it with many setting with no luck i would really appreciated if u Could offer me a help regarding this issue. (URGENT PLS)

Best Regards


Old December 27th, 2005, 05:50 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

The Northwind database and urgency in the same post. Hmmmm. Interesting.

If I am not mistaken the Northwind stores the images as BLOBs, not as paths to the images. So, to make this wok, you'll need a separate page that displays the image.

E.g. <img src="/ShowImage.aspx?Id=123" /> points to ShowImage.aspx and passes it an ID of an employee. That page should then access the database, get the BLOB from the database and write out the image.

Search Google for "store image "SQL Server" retrieve" and you'll get plenty of useful hits.


Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Gridview to Edit NOT DetailsView ? kalel_4444 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 December 4th, 2008 11:36 PM
VB: GridView & DetailsView in Master-Child Rich57 ASP.NET 2.0 Basics 1 May 29th, 2008 07:14 AM
VB GridView & DetailsView Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 1st, 2008 12:03 PM
Button on GridView that goes to DetailsView AndrewD ASP.NET 2.0 Basics 0 November 30th, 2005 11:09 AM
Can't get DetailsView to work with GridView oneworld95 ASP.NET 2.0 Basics 3 July 16th, 2005 07:19 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.