Repeater控件中的图像 [英] Image in Repeater control
本文介绍了Repeater控件中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Repeater控件中绑定图像,但它没有显示图像。
我有这样的代码。
< asp:Image id = image1 ImageUrl =' <%#DataBinder.Eval(Container。 DataItem, logo ' )%>' />
请帮帮我解决。
谢谢
Shaju
解决方案
嘿那里,
我flogo
包含图片的路径,你可以做一点修改:
< asp:Image ID = Image1 runat = server ImageUrl =' <% #Eval( logo)%>' / >
希望有所帮助。
Azee ......
< blockquote>检查:
在asp.net的Repeater Control中绑定图像 [ ^ ]
ASP.NET相册第3部分 - 显示图像 [ ^ ]
Hi,
I tried to bind image in Repeater control, but it does not showing the image.
I have the code like this.
<asp:Image id="image1" ImageUrl='<%# DataBinder.Eval(Container.DataItem,"logo"') %>' />
Please help me to solve.
Thanks
Shaju
解决方案
Hey there,
Iflogo
contains the Path of the image, you can make this little modification:
<asp:Image ID="Image1" runat="server" ImageUrl='<%#Eval("logo") %>' />
Hope it helps.
Azee...
Check:
Bind an image in Repeater Control of asp.net[^]
ASP.NET Photo Album Part 3 – Displaying Images[^]
这篇关于Repeater控件中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文