在该特定单元格中的超链接旁边需要Gridview中的图像. [英] Need Image in Gridview beside hyperlink in that particular cell.
本文介绍了在该特定单元格中的超链接旁边需要Gridview中的图像.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我的项目中有一个Gridview.
在Gridview的第二个单元格中,使用超链接.因此,超链接的左侧需要该产品的小图.
此列单元格[2]由所有超链接组成.
我只需要该单元格[2]中超链接旁边的小图像左侧.
请您能给我建议怎么做/
谢谢.
Dear Friends,
I have a Gridview in my project.
In the 2nd cell of Gridview am using hyperlink. So left side of hyperlink i need a small image of that product.
This column cell[2] consists of all Hyperlinks.
I need Small image leftside beside of hyperlink in that cell[2] only.
Please can u advice me how to do this /
thanks.
推荐答案
您可以在该特定单元格中使用TemplateField来定义该单元格中控件的每个集合.这是一个示例:
you can use TemplateField in that particular cell to define every collection of controls in that cell. Here is a sample:
<asp:templatefield runat="server" xmlns:asp="#unknown">
<itemtemplate>
<asp:image runat="server" imageurl="image1.gif" />
<a href="Default.aspx">Click here</a>
</itemtemplate>
</asp:templatefield>
希望对您有帮助,
干杯
I hope it helps,
Cheers
这篇关于在该特定单元格中的超链接旁边需要Gridview中的图像.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文