包含图像的表格 [英] Table with images contained
本文介绍了包含图像的表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
房屋记录具有图像URL,它们都存储在SQL DB的两个diffrenet表中.
我有一张表,用于连续显示数据库中的每条记录,并在同一行的单元格中显示与该记录相关的图像.
考虑具有多个包含图像的记录.
有人可以帮忙吗? :)
并且图像可以单击使您带到其他地方.
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.
推荐答案
您所说的内容很多,但让我尝试一下...
您有一张桌子,上面有房屋的详细信息.其他表可能带有houseid作为外部链接的图像.
您需要查看数据库设计,链接...外键/主键.使用JOIN
构成一个简单的查询,该查询将返回房屋的数据及其图像.将其绑定到网格中.使用图像"按钮作为项目模板中的控件来显示它们,以便在单击按钮时可以采取适当的措施.
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 usingJOIN
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.
这篇关于包含图像的表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文