我们如何在.net中的多个列中显示图像和名称 [英] how we show image and name in multiple column in .net
本文介绍了我们如何在.net中的多个列中显示图像和名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有列ID,名称和路径的表(根路径〜/Images/a.jpg)
图片文件夹包含许多图片
在页面加载中,我想在四列中以其名称显示图像
和onclick我要通过查询字符串发送图像ID的图像
请帮助我
I have a table with column id, name and path(root path ~/Images/a.jpg)
Images folder contain many images
In page load i want to show images in four columns with its name
and onclick of image i want to send the image id by query string
plese help me
推荐答案
您可以将Asp:DataList
控件用于您的解决方案,
这是下面的文章,可让您清楚了解使用数据列表显示的图像.
http://www.careerride.com/ASP-NET-Datalist-Image.aspx [ ^ ]
您可以根据用途更改Template
和Columns
.
You could useAsp:DataList
control for your solution,
Here is article below which will make you clear about image displaying with datalist.
http://www.careerride.com/ASP-NET-Datalist-Image.aspx[^]
You could change theTemplate
andColumns
accordance to use.
这篇关于我们如何在.net中的多个列中显示图像和名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文