如何在gridview的项目模板中将图像添加到图像按钮
问题描述:
我在我的网页的gridview的第3列单元格中有一个网格视图,我想向该图像button添加图像按钮和pdf下载图标.如何做到这一点,请给我建议
Hi,
i have a grid view in my webpage in the 3rd column cells of gridview i want to add image button and pdf download icon to that image button.how to do it plz give me suggestion
答
请参阅此处可能对您有帮助
http://forums.asp.net/t/1169201.aspx/1 [ ^ ]
http://p2p.wrox. com/asp-net-2-0-professional/46216-image-button-template-field-gridview-control.html [
See here may help you
http://forums.asp.net/t/1169201.aspx/1[^]
http://p2p.wrox.com/asp-net-2-0-professional/46216-image-button-template-field-gridview-control.html[^]
请参考以下链接:
在ASP.Net中显示来自SQL Server数据库的图像GridView控件 [将图像保存到ASP.NET中的数据库并显示到GridView中. [
Please refer following links:
Display images from SQL Server Database in ASP.Net GridView control[^]
Saving images into the database in aspnet and displaying to the gridview[^]
<asp:TemplateField >
<HeaderTemplate>DownLoad</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="img" runat="server" ImageUrl="~/Images/adslink.gif" />
</ItemTemplate>
</asp:TemplateField>