Click here to Skip to main content
15,896,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
A house record has an image url, both stored in two diffrenet tables in a SQL DB.
I have a table for showing each record from DB in a row, with it show an image related to that record, in a cell in the same row.

Considering having multiple records that have images.

Can anyone help please? :)

And the image be click-able to take you to somewhere else.
Posted
Updated 24-Mar-10 5:27am
v2

1 solution

There's lots of things in what you say but let me try...
You have one table having details of House. Other table having image with houseid as a foreign link probably.

You need to see your database design, links... foreign/primary keys. Form a simple query using JOIN that will return you data of house along with its image. Bind that in the grid. Use Image buttons as the control in your Item-template to display them such that on click of it you can take appropriate action.
 
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