如何在网格视图中以多列显示图像? [英] How to show images in multi coloumns in grid view ?
本文介绍了如何在网格视图中以多列显示图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在ASP网格视图中以多列显示图像.动态使用sql server设置的图像的路径.
我的意思是我想在1行中显示4张图像.在ASP网格视图中有可能吗???
how can i show images in multi columns in asp grid view. the path of images set by the dynamically using sql server.
i mean that i want to show 4 images in 1 row.is this possible in asp grid view.??
推荐答案
是的,您有可能这样做
< asp:gridview id ="GridView1" runat ="server" xmlns:asp =#unknown">
style ="z-index:1;左:261px;上:76px;位置:绝对;高度:267px;宽度:512px">
<列> < asp:templatefield>
< itemtemplate>
< asp:image id ="Image1" runat ="server" imageurl =<%#Eval(" column"=""name =""of =""image =""in =""table =") %> />< br mode ="hold ="/> </ItemTemplate>< br模式="image2 =" runat ="server =" ImageUrl =<%#Eval("column =">
yes it is possible u can do it like this
<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown">
style="z-index: 1; left: 261px; top: 76px; position: absolute; height: 267px; width: 512px">
<columns> <asp:templatefield>
<itemtemplate>
<asp:image id="Image1" runat="server" imageurl="<%#Eval(" column"="" name="" of="" image="" in="" table=")%> /><br mode=" hold=" /> </ItemTemplate><br mode=" image2=" runat=" server=" ImageUrl=<%#Eval(" column="">
这篇关于如何在网格视图中以多列显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文