如何在gridview的项目模板中将图像添加到图像按钮 [英] how to add an image to image button in item template in gridview

查看:63
本文介绍了如何在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>


这篇关于如何在gridview的项目模板中将图像添加到图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆