Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Currently I am working on eCommerce application, wherein a page should display the product image using linq, being fetched from the database via a WCF service.

My problem is that the images should be displayed dynamically inside the tablecell of the asp.net table control during page load.

I have fetch the data from WCF but unable to display the image inside the tablecell using asp.net Image control.

Any Idea / suggestions / solutions are most invited.

Regards,
Raghuveer
Posted
Updated 17-Jul-12 0:22am
v2
Comments
AmitGajjar 17-Jul-12 7:07am    
Can you post your code ? It would be helpful for us to identify your issue. please use Improve question to change your question detail.

1 solution

If you store your image in the database (binary), you will have to create a generic handler to show that image.It can use a BinaryWrite to show the image.
Then you have a file that will show images from your database based on a querystring parameter (imageId=123).

And then add a in your table with src="yourHandler.ashx?imageId=123"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900