ASP .net Repeater控件 [英] ASP .net Repeater control
本文介绍了ASP .net Repeater控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将数据库表与包含图像数据的Repeater控件绑定在ASp.net中
How can i bind the database table with Repeater control which contains image data also in ASp.net
推荐答案
请参阅此处,
http://www.aspdotnet-suresh.com/2012/01/ repeater-control-example-in-aspnet.html [ ^ ]
要将图像绑定到转发器控件,您可以像这样使用。 />
Refer here,
http://www.aspdotnet-suresh.com/2012/01/repeater-control-example-in-aspnet.html[^]
And to bind an image to the repeater control you can use like this.
<asp:image id="Image1" imageurl="<%# "~/"+ Eval("id").ToString() + ".gif" %>" runat="server" xmlns:asp="#unknown" />
这篇关于ASP .net Repeater控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文